tamagui 1.126.13 → 1.126.15
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/index.cjs +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.native.js +2 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +2 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -2
- package/dist/esm/index.native.js.map +1 -1
- package/dist/jsx/index.js +2 -0
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +2 -2
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +2 -0
- package/dist/jsx/index.native.js.map +2 -2
- package/dist/native.js +165 -179
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +165 -179
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
- package/src/index.ts +1 -0
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/views/Anchor.d.ts.map +1 -1
package/dist/test.native.js
CHANGED
|
@@ -10719,13 +10719,25 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
10719
10719
|
__export2(TamaguiProvider_exports, {
|
|
10720
10720
|
TamaguiProvider: function() {
|
|
10721
10721
|
return TamaguiProvider2;
|
|
10722
|
+
},
|
|
10723
|
+
___onDidFinishClientRender: function() {
|
|
10724
|
+
return ___onDidFinishClientRender;
|
|
10722
10725
|
}
|
|
10723
10726
|
});
|
|
10724
10727
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
10725
|
-
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_ThemeProvider = require_ThemeProvider_native(), import_useMedia = require_useMedia_native();
|
|
10728
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native6(), import_react3 = __toESM2(require("react")), import_config = require_config_native(), import_ComponentContext = require_ComponentContext_native(), import_ThemeProvider = require_ThemeProvider_native(), import_useMedia = require_useMedia_native(), listeners = /* @__PURE__ */ new Set(), didRender = !1;
|
|
10729
|
+
function ___onDidFinishClientRender(cb) {
|
|
10730
|
+
didRender ? cb() : listeners.add(cb);
|
|
10731
|
+
}
|
|
10726
10732
|
function TamaguiProvider2(param) {
|
|
10727
10733
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
10728
|
-
return
|
|
10734
|
+
return (0, import_react3.useEffect)(function() {
|
|
10735
|
+
return listeners.forEach(function(cb) {
|
|
10736
|
+
return cb();
|
|
10737
|
+
}), didRender = !0, function() {
|
|
10738
|
+
didRender = !1;
|
|
10739
|
+
};
|
|
10740
|
+
}, []), process.env.TAMAGUI_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
10729
10741
|
if (config && !disableInjectCSS) {
|
|
10730
10742
|
var style = document.createElement("style");
|
|
10731
10743
|
return style.appendChild(document.createTextNode(config.getCSS())), document.head.appendChild(style), function() {
|
|
@@ -12568,6 +12580,86 @@ var require_index_native17 = __commonJS({
|
|
|
12568
12580
|
}
|
|
12569
12581
|
});
|
|
12570
12582
|
|
|
12583
|
+
// ../../core/core/dist/cjs/addNativeValidStyles.native.js
|
|
12584
|
+
var require_addNativeValidStyles_native = __commonJS({
|
|
12585
|
+
"../../core/core/dist/cjs/addNativeValidStyles.native.js"(exports2, module2) {
|
|
12586
|
+
"use strict";
|
|
12587
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
12588
|
+
for (var name in all) __defProp2(target, name, {
|
|
12589
|
+
get: all[name],
|
|
12590
|
+
enumerable: !0
|
|
12591
|
+
});
|
|
12592
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
12593
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
12594
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
12595
|
+
for (var _loop = function() {
|
|
12596
|
+
var key = _step.value;
|
|
12597
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
12598
|
+
get: function() {
|
|
12599
|
+
return from[key];
|
|
12600
|
+
},
|
|
12601
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
12602
|
+
});
|
|
12603
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
12604
|
+
} catch (err) {
|
|
12605
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
12606
|
+
} finally {
|
|
12607
|
+
try {
|
|
12608
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
12609
|
+
} finally {
|
|
12610
|
+
if (_didIteratorError)
|
|
12611
|
+
throw _iteratorError;
|
|
12612
|
+
}
|
|
12613
|
+
}
|
|
12614
|
+
return to;
|
|
12615
|
+
}, __toCommonJS2 = function(mod) {
|
|
12616
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
12617
|
+
value: !0
|
|
12618
|
+
}), mod);
|
|
12619
|
+
}, addNativeValidStyles_native_exports = {};
|
|
12620
|
+
__export2(addNativeValidStyles_native_exports, {
|
|
12621
|
+
addNativeValidStyles: function() {
|
|
12622
|
+
return addNativeValidStyles;
|
|
12623
|
+
}
|
|
12624
|
+
});
|
|
12625
|
+
module2.exports = __toCommonJS2(addNativeValidStyles_native_exports);
|
|
12626
|
+
var import_helpers = require_index_native7();
|
|
12627
|
+
function getReactNativeVersion() {
|
|
12628
|
+
var version = process.env.REACT_NATIVE_VERSION || "";
|
|
12629
|
+
if (!process.env.REACT_NATIVE_VERSION) try {
|
|
12630
|
+
var ReactNativeOfficalVersion = require("react-native/Libraries/Core/ReactNativeVersion");
|
|
12631
|
+
if (ReactNativeOfficalVersion) {
|
|
12632
|
+
var { version: { major, minor, patch } } = ReactNativeOfficalVersion;
|
|
12633
|
+
version = `${major}.${minor}.${patch}`;
|
|
12634
|
+
}
|
|
12635
|
+
} catch {
|
|
12636
|
+
} finally {
|
|
12637
|
+
version || (version = "0.77");
|
|
12638
|
+
}
|
|
12639
|
+
var [major1, minor1, patch1] = version.split(".");
|
|
12640
|
+
return [
|
|
12641
|
+
+major1,
|
|
12642
|
+
+minor1,
|
|
12643
|
+
+patch1
|
|
12644
|
+
];
|
|
12645
|
+
}
|
|
12646
|
+
function addNativeValidStyles() {
|
|
12647
|
+
var [major, minor] = getReactNativeVersion();
|
|
12648
|
+
if (major === 0 && minor >= 77) {
|
|
12649
|
+
var additional = {
|
|
12650
|
+
boxSizing: !0,
|
|
12651
|
+
mixBlendMode: !0,
|
|
12652
|
+
outlineWidth: !0,
|
|
12653
|
+
outlineStyle: !0,
|
|
12654
|
+
outlineSpread: !0,
|
|
12655
|
+
outlineColor: !0
|
|
12656
|
+
};
|
|
12657
|
+
Object.assign(import_helpers.validStyles, additional), Object.assign(import_helpers.stylePropsAll, additional);
|
|
12658
|
+
}
|
|
12659
|
+
}
|
|
12660
|
+
}
|
|
12661
|
+
});
|
|
12662
|
+
|
|
12571
12663
|
// ../../core/core/dist/cjs/createOptimizedView.native.js
|
|
12572
12664
|
var require_createOptimizedView_native = __commonJS({
|
|
12573
12665
|
"../../core/core/dist/cjs/createOptimizedView.native.js"(exports2, module2) {
|
|
@@ -13008,87 +13100,72 @@ var require_useElementLayout_native = __commonJS({
|
|
|
13008
13100
|
}), mod);
|
|
13009
13101
|
}, useElementLayout_exports = {};
|
|
13010
13102
|
__export2(useElementLayout_exports, {
|
|
13011
|
-
|
|
13012
|
-
return
|
|
13103
|
+
getElementLayoutEvent: function() {
|
|
13104
|
+
return getElementLayoutEvent2;
|
|
13013
13105
|
},
|
|
13014
13106
|
measureLayout: function() {
|
|
13015
13107
|
return measureLayout;
|
|
13016
13108
|
},
|
|
13109
|
+
setOnLayoutStrategy: function() {
|
|
13110
|
+
return setOnLayoutStrategy3;
|
|
13111
|
+
},
|
|
13017
13112
|
useElementLayout: function() {
|
|
13018
13113
|
return useElementLayout;
|
|
13019
13114
|
}
|
|
13020
13115
|
});
|
|
13021
13116
|
module2.exports = __toCommonJS2(useElementLayout_exports);
|
|
13022
|
-
var import_constants4 = require_index_native6(),
|
|
13023
|
-
function
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
|
|
13038
|
-
|
|
13039
|
-
|
|
13040
|
-
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
|
|
13044
|
-
|
|
13045
|
-
}
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13057
|
-
|
|
13058
|
-
|
|
13059
|
-
var tm, measureElement = async function(target) {
|
|
13060
|
-
return new Promise(function(res) {
|
|
13061
|
-
measureLayout(target, null, function(x, y, width, height, left, top) {
|
|
13062
|
-
res({
|
|
13063
|
-
nativeEvent: {
|
|
13064
|
-
layout: {
|
|
13065
|
-
x,
|
|
13066
|
-
y,
|
|
13067
|
-
width,
|
|
13068
|
-
height,
|
|
13069
|
-
left,
|
|
13070
|
-
top
|
|
13071
|
-
},
|
|
13072
|
-
target
|
|
13117
|
+
var import_constants4 = require_index_native6(), import_web = require_index_native14(), LayoutHandlers = /* @__PURE__ */ new WeakMap(), Nodes = /* @__PURE__ */ new Set(), status = "active";
|
|
13118
|
+
function setOnLayoutStrategy3(state) {
|
|
13119
|
+
status = state;
|
|
13120
|
+
}
|
|
13121
|
+
var NodeRectCache = /* @__PURE__ */ new WeakMap(), ParentRectCache = /* @__PURE__ */ new WeakMap(), rAF = typeof window < "u" ? window.requestAnimationFrame : void 0;
|
|
13122
|
+
import_constants4.isClient && rAF && (updateLayoutIfChanged = function(node) {
|
|
13123
|
+
var nodeRect = node.getBoundingClientRect(), parentNode = node.parentElement, parentRect = parentNode == null ? void 0 : parentNode.getBoundingClientRect(), onLayout = LayoutHandlers.get(node);
|
|
13124
|
+
if (typeof onLayout == "function") {
|
|
13125
|
+
var cachedRect = NodeRectCache.get(node), cachedParentRect = parentNode ? NodeRectCache.get(parentNode) : null;
|
|
13126
|
+
if (!cachedRect || // has changed one rect
|
|
13127
|
+
!(0, import_web.isEqualShallow)(cachedRect, nodeRect) && (!cachedParentRect || !(0, import_web.isEqualShallow)(cachedParentRect, parentRect))) {
|
|
13128
|
+
NodeRectCache.set(node, nodeRect), parentRect && parentNode && ParentRectCache.set(parentNode, parentRect);
|
|
13129
|
+
var event = getElementLayoutEvent2(node);
|
|
13130
|
+
avoidUpdates ? queuedUpdates.set(node, function() {
|
|
13131
|
+
return onLayout(event);
|
|
13132
|
+
}) : onLayout(event);
|
|
13133
|
+
}
|
|
13134
|
+
}
|
|
13135
|
+
}, layoutOnAnimationFrame = function() {
|
|
13136
|
+
status !== "inactive" && Nodes.forEach(updateLayoutIfChanged), rAF(layoutOnAnimationFrame);
|
|
13137
|
+
}, updateLayoutIfChanged2 = updateLayoutIfChanged, layoutOnAnimationFrame2 = layoutOnAnimationFrame, avoidUpdates = !0, queuedUpdates = /* @__PURE__ */ new Map(), (0, import_web.___onDidFinishClientRender)(function() {
|
|
13138
|
+
avoidUpdates = !1, queuedUpdates && (queuedUpdates.forEach(function(cb) {
|
|
13139
|
+
return cb();
|
|
13140
|
+
}), queuedUpdates.clear());
|
|
13141
|
+
}), rAF(layoutOnAnimationFrame));
|
|
13142
|
+
var updateLayoutIfChanged, layoutOnAnimationFrame, updateLayoutIfChanged2, layoutOnAnimationFrame2, avoidUpdates, queuedUpdates, getElementLayoutEvent2 = function(target) {
|
|
13143
|
+
var res = null;
|
|
13144
|
+
if (measureLayout(target, null, function(x, y, width, height, left, top) {
|
|
13145
|
+
res = {
|
|
13146
|
+
nativeEvent: {
|
|
13147
|
+
layout: {
|
|
13148
|
+
x,
|
|
13149
|
+
y,
|
|
13150
|
+
width,
|
|
13151
|
+
height,
|
|
13152
|
+
left,
|
|
13153
|
+
top
|
|
13073
13154
|
},
|
|
13074
|
-
|
|
13075
|
-
}
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13155
|
+
target
|
|
13156
|
+
},
|
|
13157
|
+
timeStamp: Date.now()
|
|
13158
|
+
};
|
|
13159
|
+
}), !res) throw new Error("\u203C\uFE0F");
|
|
13160
|
+
return res;
|
|
13161
|
+
}, measureLayout = function(node, relativeTo, callback) {
|
|
13162
|
+
var relativeNode = relativeTo || (node == null ? void 0 : node.parentElement);
|
|
13080
13163
|
if (relativeNode instanceof HTMLElement) {
|
|
13081
|
-
var
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
var [nodeDim, relativeNodeDim] = param;
|
|
13087
|
-
if (relativeNodeDim && nodeDim && cache.get(node) === now) {
|
|
13088
|
-
var { x, y, width, height, left, top } = getRelativeDimensions(nodeDim, relativeNodeDim);
|
|
13089
|
-
callback(x, y, width, height, left, top);
|
|
13090
|
-
}
|
|
13091
|
-
});
|
|
13164
|
+
var nodeDim = node.getBoundingClientRect(), relativeNodeDim = relativeNode.getBoundingClientRect();
|
|
13165
|
+
if (relativeNodeDim && nodeDim) {
|
|
13166
|
+
var { x, y, width, height, left, top } = getRelativeDimensions(nodeDim, relativeNodeDim);
|
|
13167
|
+
callback(x, y, width, height, left, top);
|
|
13168
|
+
}
|
|
13092
13169
|
}
|
|
13093
13170
|
}, getRelativeDimensions = function(a, b) {
|
|
13094
13171
|
var { height, left, top, width } = a, x = left - b.left, y = top - b.top;
|
|
@@ -13100,35 +13177,16 @@ var require_useElementLayout_native = __commonJS({
|
|
|
13100
13177
|
left,
|
|
13101
13178
|
top
|
|
13102
13179
|
};
|
|
13103
|
-
}, getBoundingClientRectAsync = function(element) {
|
|
13104
|
-
return new Promise(function(resolve) {
|
|
13105
|
-
function fallbackToSync() {
|
|
13106
|
-
resolve((0, import_getBoundingClientRect.getBoundingClientRect)(element));
|
|
13107
|
-
}
|
|
13108
|
-
var tm2 = setTimeout(fallbackToSync, 10), observer = new IntersectionObserver(function(entries, ob) {
|
|
13109
|
-
var _entries_;
|
|
13110
|
-
clearTimeout(tm2), ob.disconnect(), resolve((_entries_ = entries[0]) === null || _entries_ === void 0 ? void 0 : _entries_.boundingClientRect);
|
|
13111
|
-
}, {
|
|
13112
|
-
threshold: 1e-4
|
|
13113
|
-
});
|
|
13114
|
-
observer.observe(element);
|
|
13115
|
-
});
|
|
13116
13180
|
};
|
|
13117
13181
|
function useElementLayout(ref, onLayout) {
|
|
13118
13182
|
var _ref_current, node = (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.host;
|
|
13119
13183
|
node && onLayout && LayoutHandlers.set(node, onLayout), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
13120
13184
|
var _ref_current2;
|
|
13121
|
-
if (
|
|
13185
|
+
if (onLayout) {
|
|
13122
13186
|
var node2 = (_ref_current2 = ref.current) === null || _ref_current2 === void 0 ? void 0 : _ref_current2.host;
|
|
13123
|
-
if (node2) {
|
|
13124
|
-
LayoutHandlers.
|
|
13125
|
-
|
|
13126
|
-
measureElement(node2).then(onLayout);
|
|
13127
|
-
};
|
|
13128
|
-
return resizeListeners.add(onResize), resizeObserver.observe(node2), function() {
|
|
13129
|
-
LayoutHandlers.delete(node2), resizeListeners.delete(onResize), resizeObserver == null || resizeObserver.unobserve(node2);
|
|
13130
|
-
};
|
|
13131
|
-
}
|
|
13187
|
+
if (node2) return LayoutHandlers.set(node2, onLayout), Nodes.add(node2), onLayout(getElementLayoutEvent2(node2)), function() {
|
|
13188
|
+
Nodes.delete(node2), LayoutHandlers.delete(node2), NodeRectCache.delete(node2);
|
|
13189
|
+
};
|
|
13132
13190
|
}
|
|
13133
13191
|
}, [
|
|
13134
13192
|
ref,
|
|
@@ -13237,86 +13295,6 @@ var require_Pressability_native = __commonJS({
|
|
|
13237
13295
|
}
|
|
13238
13296
|
});
|
|
13239
13297
|
|
|
13240
|
-
// ../../core/core/dist/cjs/addNativeValidStyles.native.js
|
|
13241
|
-
var require_addNativeValidStyles_native = __commonJS({
|
|
13242
|
-
"../../core/core/dist/cjs/addNativeValidStyles.native.js"(exports2, module2) {
|
|
13243
|
-
"use strict";
|
|
13244
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
13245
|
-
for (var name in all) __defProp2(target, name, {
|
|
13246
|
-
get: all[name],
|
|
13247
|
-
enumerable: !0
|
|
13248
|
-
});
|
|
13249
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
13250
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
13251
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
13252
|
-
for (var _loop = function() {
|
|
13253
|
-
var key = _step.value;
|
|
13254
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
13255
|
-
get: function() {
|
|
13256
|
-
return from[key];
|
|
13257
|
-
},
|
|
13258
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
13259
|
-
});
|
|
13260
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
13261
|
-
} catch (err) {
|
|
13262
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
13263
|
-
} finally {
|
|
13264
|
-
try {
|
|
13265
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
13266
|
-
} finally {
|
|
13267
|
-
if (_didIteratorError)
|
|
13268
|
-
throw _iteratorError;
|
|
13269
|
-
}
|
|
13270
|
-
}
|
|
13271
|
-
return to;
|
|
13272
|
-
}, __toCommonJS2 = function(mod) {
|
|
13273
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
13274
|
-
value: !0
|
|
13275
|
-
}), mod);
|
|
13276
|
-
}, addNativeValidStyles_native_exports = {};
|
|
13277
|
-
__export2(addNativeValidStyles_native_exports, {
|
|
13278
|
-
addNativeValidStyles: function() {
|
|
13279
|
-
return addNativeValidStyles;
|
|
13280
|
-
}
|
|
13281
|
-
});
|
|
13282
|
-
module2.exports = __toCommonJS2(addNativeValidStyles_native_exports);
|
|
13283
|
-
var import_helpers = require_index_native7();
|
|
13284
|
-
function getReactNativeVersion() {
|
|
13285
|
-
var version = process.env.REACT_NATIVE_VERSION || "";
|
|
13286
|
-
if (!process.env.REACT_NATIVE_VERSION) try {
|
|
13287
|
-
var ReactNativeOfficalVersion = require("react-native/Libraries/Core/ReactNativeVersion");
|
|
13288
|
-
if (ReactNativeOfficalVersion) {
|
|
13289
|
-
var { version: { major, minor, patch } } = ReactNativeOfficalVersion;
|
|
13290
|
-
version = `${major}.${minor}.${patch}`;
|
|
13291
|
-
}
|
|
13292
|
-
} catch {
|
|
13293
|
-
} finally {
|
|
13294
|
-
version || (version = "0.77");
|
|
13295
|
-
}
|
|
13296
|
-
var [major1, minor1, patch1] = version.split(".");
|
|
13297
|
-
return [
|
|
13298
|
-
+major1,
|
|
13299
|
-
+minor1,
|
|
13300
|
-
+patch1
|
|
13301
|
-
];
|
|
13302
|
-
}
|
|
13303
|
-
function addNativeValidStyles() {
|
|
13304
|
-
var [major, minor] = getReactNativeVersion();
|
|
13305
|
-
if (major === 0 && minor >= 77) {
|
|
13306
|
-
var additional = {
|
|
13307
|
-
boxSizing: !0,
|
|
13308
|
-
mixBlendMode: !0,
|
|
13309
|
-
outlineWidth: !0,
|
|
13310
|
-
outlineStyle: !0,
|
|
13311
|
-
outlineSpread: !0,
|
|
13312
|
-
outlineColor: !0
|
|
13313
|
-
};
|
|
13314
|
-
Object.assign(import_helpers.validStyles, additional), Object.assign(import_helpers.stylePropsAll, additional);
|
|
13315
|
-
}
|
|
13316
|
-
}
|
|
13317
|
-
}
|
|
13318
|
-
});
|
|
13319
|
-
|
|
13320
13298
|
// ../../core/core/dist/cjs/reactNativeTypes.native.js
|
|
13321
13299
|
var require_reactNativeTypes_native = __commonJS({
|
|
13322
13300
|
"../../core/core/dist/cjs/reactNativeTypes.native.js"(exports2, module2) {
|
|
@@ -13416,10 +13394,16 @@ var require_index_native18 = __commonJS({
|
|
|
13416
13394
|
},
|
|
13417
13395
|
createTamagui: function() {
|
|
13418
13396
|
return createTamagui2;
|
|
13397
|
+
},
|
|
13398
|
+
getElementLayoutEvent: function() {
|
|
13399
|
+
return import_useElementLayout2.getElementLayoutEvent;
|
|
13400
|
+
},
|
|
13401
|
+
setOnLayoutStrategy: function() {
|
|
13402
|
+
return import_useElementLayout2.setOnLayoutStrategy;
|
|
13419
13403
|
}
|
|
13420
13404
|
});
|
|
13421
13405
|
module2.exports = __toCommonJS2(index_exports2);
|
|
13422
|
-
var import_react_native_media_driver = require_index_native16(), import_react_native_use_responder_events = require_index_native17(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_createOptimizedView = require_createOptimizedView_native(), import_getBaseViews = require_getBaseViews_native(), import_getRect = require_getRect_native(), import_useElementLayout = require_useElementLayout_native(), import_Pressability = require_Pressability_native(),
|
|
13406
|
+
var import_react_native_media_driver = require_index_native16(), import_react_native_use_responder_events = require_index_native17(), import_web = require_index_native14(), import_react3 = __toESM2(require("react")), import_addNativeValidStyles = require_addNativeValidStyles_native(), import_createOptimizedView = require_createOptimizedView_native(), import_getBaseViews = require_getBaseViews_native(), import_getRect = require_getRect_native(), import_useElementLayout = require_useElementLayout_native(), import_Pressability = require_Pressability_native(), import_useElementLayout2 = require_useElementLayout_native();
|
|
13423
13407
|
__reExport2(index_exports2, require_index_native14(), module2.exports);
|
|
13424
13408
|
__reExport2(index_exports2, require_reactNativeTypes_native(), module2.exports);
|
|
13425
13409
|
(0, import_addNativeValidStyles.addNativeValidStyles)();
|
|
@@ -15476,14 +15460,14 @@ var require_useStackedZIndex_native = __commonJS({
|
|
|
15476
15460
|
module2.exports = __toCommonJS2(useStackedZIndex_exports);
|
|
15477
15461
|
var import_react3 = require("react"), import_context = require_context_native(), ZIndicesByContext = {}, CurrentPortalZIndices = {}, useStackedZIndex = function(props) {
|
|
15478
15462
|
if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
|
|
15479
|
-
var { stackZIndex, zIndex: zIndexProp
|
|
15480
|
-
if (stackZIndex && stackZIndex !== "global") {
|
|
15463
|
+
var { stackZIndex, zIndex: zIndexProp } = props, id = (0, import_react3.useId)(), zIndex = (0, import_react3.useMemo)(function() {
|
|
15464
|
+
if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
|
|
15481
15465
|
var highest = Object.values(CurrentPortalZIndices).reduce(function(acc, cur) {
|
|
15482
15466
|
return Math.max(acc, cur);
|
|
15483
15467
|
}, 0);
|
|
15484
15468
|
return Math.max(stackZIndex === !0 ? 1 : stackZIndex, highest + 1);
|
|
15485
15469
|
}
|
|
15486
|
-
return zIndexProp
|
|
15470
|
+
return zIndexProp ?? 1e3;
|
|
15487
15471
|
}, [
|
|
15488
15472
|
stackZIndex
|
|
15489
15473
|
]);
|
|
@@ -31003,6 +30987,7 @@ __export(index_exports, {
|
|
|
31003
30987
|
mediaQueryConfig: () => import_core11.mediaQueryConfig,
|
|
31004
30988
|
mediaState: () => import_core11.mediaState,
|
|
31005
30989
|
setConfig: () => import_core11.setConfig,
|
|
30990
|
+
setOnLayoutStrategy: () => import_core11.setOnLayoutStrategy,
|
|
31006
30991
|
setupDev: () => import_core11.setupDev,
|
|
31007
30992
|
setupReactNative: () => import_core11.setupReactNative,
|
|
31008
30993
|
spacedChildren: () => import_core11.spacedChildren,
|
|
@@ -31376,6 +31361,7 @@ var import_core11 = __toESM(require_index_native18());
|
|
|
31376
31361
|
mediaQueryConfig,
|
|
31377
31362
|
mediaState,
|
|
31378
31363
|
setConfig,
|
|
31364
|
+
setOnLayoutStrategy,
|
|
31379
31365
|
setupDev,
|
|
31380
31366
|
setupReactNative,
|
|
31381
31367
|
spacedChildren,
|