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/native.js
CHANGED
|
@@ -11294,13 +11294,25 @@ var require_TamaguiProvider_native = __commonJS({
|
|
|
11294
11294
|
__export2(TamaguiProvider_exports, {
|
|
11295
11295
|
TamaguiProvider: function() {
|
|
11296
11296
|
return TamaguiProvider2;
|
|
11297
|
+
},
|
|
11298
|
+
___onDidFinishClientRender: function() {
|
|
11299
|
+
return ___onDidFinishClientRender;
|
|
11297
11300
|
}
|
|
11298
11301
|
});
|
|
11299
11302
|
module2.exports = __toCommonJS2(TamaguiProvider_exports);
|
|
11300
|
-
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();
|
|
11303
|
+
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;
|
|
11304
|
+
function ___onDidFinishClientRender(cb) {
|
|
11305
|
+
didRender ? cb() : listeners.add(cb);
|
|
11306
|
+
}
|
|
11301
11307
|
function TamaguiProvider2(param) {
|
|
11302
11308
|
var { children, disableInjectCSS, config, className, defaultTheme, disableRootThemeClass, reset, themeClassNameOnRoot } = param;
|
|
11303
|
-
return
|
|
11309
|
+
return (0, import_react3.useEffect)(function() {
|
|
11310
|
+
return listeners.forEach(function(cb) {
|
|
11311
|
+
return cb();
|
|
11312
|
+
}), didRender = !0, function() {
|
|
11313
|
+
didRender = !1;
|
|
11314
|
+
};
|
|
11315
|
+
}, []), process.env.TAMAGUI_REACT_19 || import_constants4.isClient && (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
11304
11316
|
if (config && !disableInjectCSS) {
|
|
11305
11317
|
var style = document.createElement("style");
|
|
11306
11318
|
return style.appendChild(document.createTextNode(config.getCSS())), document.head.appendChild(style), function() {
|
|
@@ -13147,6 +13159,86 @@ var require_index_native17 = __commonJS({
|
|
|
13147
13159
|
}
|
|
13148
13160
|
});
|
|
13149
13161
|
|
|
13162
|
+
// ../../core/core/dist/cjs/addNativeValidStyles.native.js
|
|
13163
|
+
var require_addNativeValidStyles_native = __commonJS({
|
|
13164
|
+
"../../core/core/dist/cjs/addNativeValidStyles.native.js"(exports2, module2) {
|
|
13165
|
+
"use strict";
|
|
13166
|
+
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
13167
|
+
for (var name in all) __defProp2(target, name, {
|
|
13168
|
+
get: all[name],
|
|
13169
|
+
enumerable: !0
|
|
13170
|
+
});
|
|
13171
|
+
}, __copyProps2 = function(to, from, except, desc) {
|
|
13172
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
13173
|
+
if (from && typeof from == "object" || typeof from == "function") try {
|
|
13174
|
+
for (var _loop = function() {
|
|
13175
|
+
var key = _step.value;
|
|
13176
|
+
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
13177
|
+
get: function() {
|
|
13178
|
+
return from[key];
|
|
13179
|
+
},
|
|
13180
|
+
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
13181
|
+
});
|
|
13182
|
+
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
13183
|
+
} catch (err) {
|
|
13184
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
13185
|
+
} finally {
|
|
13186
|
+
try {
|
|
13187
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
13188
|
+
} finally {
|
|
13189
|
+
if (_didIteratorError)
|
|
13190
|
+
throw _iteratorError;
|
|
13191
|
+
}
|
|
13192
|
+
}
|
|
13193
|
+
return to;
|
|
13194
|
+
}, __toCommonJS2 = function(mod) {
|
|
13195
|
+
return __copyProps2(__defProp2({}, "__esModule", {
|
|
13196
|
+
value: !0
|
|
13197
|
+
}), mod);
|
|
13198
|
+
}, addNativeValidStyles_native_exports = {};
|
|
13199
|
+
__export2(addNativeValidStyles_native_exports, {
|
|
13200
|
+
addNativeValidStyles: function() {
|
|
13201
|
+
return addNativeValidStyles;
|
|
13202
|
+
}
|
|
13203
|
+
});
|
|
13204
|
+
module2.exports = __toCommonJS2(addNativeValidStyles_native_exports);
|
|
13205
|
+
var import_helpers = require_index_native7();
|
|
13206
|
+
function getReactNativeVersion() {
|
|
13207
|
+
var version = process.env.REACT_NATIVE_VERSION || "";
|
|
13208
|
+
if (!process.env.REACT_NATIVE_VERSION) try {
|
|
13209
|
+
var ReactNativeOfficalVersion = require("react-native/Libraries/Core/ReactNativeVersion");
|
|
13210
|
+
if (ReactNativeOfficalVersion) {
|
|
13211
|
+
var { version: { major, minor, patch } } = ReactNativeOfficalVersion;
|
|
13212
|
+
version = `${major}.${minor}.${patch}`;
|
|
13213
|
+
}
|
|
13214
|
+
} catch {
|
|
13215
|
+
} finally {
|
|
13216
|
+
version || (version = "0.77");
|
|
13217
|
+
}
|
|
13218
|
+
var [major1, minor1, patch1] = version.split(".");
|
|
13219
|
+
return [
|
|
13220
|
+
+major1,
|
|
13221
|
+
+minor1,
|
|
13222
|
+
+patch1
|
|
13223
|
+
];
|
|
13224
|
+
}
|
|
13225
|
+
function addNativeValidStyles() {
|
|
13226
|
+
var [major, minor] = getReactNativeVersion();
|
|
13227
|
+
if (major === 0 && minor >= 77) {
|
|
13228
|
+
var additional = {
|
|
13229
|
+
boxSizing: !0,
|
|
13230
|
+
mixBlendMode: !0,
|
|
13231
|
+
outlineWidth: !0,
|
|
13232
|
+
outlineStyle: !0,
|
|
13233
|
+
outlineSpread: !0,
|
|
13234
|
+
outlineColor: !0
|
|
13235
|
+
};
|
|
13236
|
+
Object.assign(import_helpers.validStyles, additional), Object.assign(import_helpers.stylePropsAll, additional);
|
|
13237
|
+
}
|
|
13238
|
+
}
|
|
13239
|
+
}
|
|
13240
|
+
});
|
|
13241
|
+
|
|
13150
13242
|
// ../../core/core/dist/cjs/createOptimizedView.native.js
|
|
13151
13243
|
var require_createOptimizedView_native = __commonJS({
|
|
13152
13244
|
"../../core/core/dist/cjs/createOptimizedView.native.js"(exports2, module2) {
|
|
@@ -13590,87 +13682,72 @@ var require_useElementLayout_native = __commonJS({
|
|
|
13590
13682
|
}), mod);
|
|
13591
13683
|
}, useElementLayout_exports = {};
|
|
13592
13684
|
__export2(useElementLayout_exports, {
|
|
13593
|
-
|
|
13594
|
-
return
|
|
13685
|
+
getElementLayoutEvent: function() {
|
|
13686
|
+
return getElementLayoutEvent2;
|
|
13595
13687
|
},
|
|
13596
13688
|
measureLayout: function() {
|
|
13597
13689
|
return measureLayout;
|
|
13598
13690
|
},
|
|
13691
|
+
setOnLayoutStrategy: function() {
|
|
13692
|
+
return setOnLayoutStrategy3;
|
|
13693
|
+
},
|
|
13599
13694
|
useElementLayout: function() {
|
|
13600
13695
|
return useElementLayout;
|
|
13601
13696
|
}
|
|
13602
13697
|
});
|
|
13603
13698
|
module2.exports = __toCommonJS2(useElementLayout_exports);
|
|
13604
|
-
var import_constants4 = require_index_native6(),
|
|
13605
|
-
function
|
|
13606
|
-
|
|
13607
|
-
|
|
13608
|
-
|
|
13609
|
-
|
|
13610
|
-
|
|
13611
|
-
|
|
13612
|
-
|
|
13613
|
-
|
|
13614
|
-
|
|
13615
|
-
|
|
13616
|
-
|
|
13617
|
-
|
|
13618
|
-
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
|
|
13626
|
-
|
|
13627
|
-
}
|
|
13628
|
-
|
|
13629
|
-
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13633
|
-
|
|
13634
|
-
|
|
13635
|
-
|
|
13636
|
-
|
|
13637
|
-
|
|
13638
|
-
|
|
13639
|
-
|
|
13640
|
-
|
|
13641
|
-
var tm, measureElement = async function(target) {
|
|
13642
|
-
return new Promise(function(res) {
|
|
13643
|
-
measureLayout(target, null, function(x, y, width, height, left, top) {
|
|
13644
|
-
res({
|
|
13645
|
-
nativeEvent: {
|
|
13646
|
-
layout: {
|
|
13647
|
-
x,
|
|
13648
|
-
y,
|
|
13649
|
-
width,
|
|
13650
|
-
height,
|
|
13651
|
-
left,
|
|
13652
|
-
top
|
|
13653
|
-
},
|
|
13654
|
-
target
|
|
13699
|
+
var import_constants4 = require_index_native6(), import_web = require_index_native14(), LayoutHandlers = /* @__PURE__ */ new WeakMap(), Nodes = /* @__PURE__ */ new Set(), status = "active";
|
|
13700
|
+
function setOnLayoutStrategy3(state) {
|
|
13701
|
+
status = state;
|
|
13702
|
+
}
|
|
13703
|
+
var NodeRectCache = /* @__PURE__ */ new WeakMap(), ParentRectCache = /* @__PURE__ */ new WeakMap(), rAF = typeof window < "u" ? window.requestAnimationFrame : void 0;
|
|
13704
|
+
import_constants4.isClient && (rAF ? (updateLayoutIfChanged = function(node) {
|
|
13705
|
+
var nodeRect = node.getBoundingClientRect(), parentNode = node.parentElement, parentRect = parentNode == null ? void 0 : parentNode.getBoundingClientRect(), onLayout = LayoutHandlers.get(node);
|
|
13706
|
+
if (typeof onLayout == "function") {
|
|
13707
|
+
var cachedRect = NodeRectCache.get(node), cachedParentRect = parentNode ? NodeRectCache.get(parentNode) : null;
|
|
13708
|
+
if (!cachedRect || // has changed one rect
|
|
13709
|
+
!(0, import_web.isEqualShallow)(cachedRect, nodeRect) && (!cachedParentRect || !(0, import_web.isEqualShallow)(cachedParentRect, parentRect))) {
|
|
13710
|
+
NodeRectCache.set(node, nodeRect), parentRect && parentNode && ParentRectCache.set(parentNode, parentRect);
|
|
13711
|
+
var event = getElementLayoutEvent2(node);
|
|
13712
|
+
avoidUpdates ? queuedUpdates.set(node, function() {
|
|
13713
|
+
return onLayout(event);
|
|
13714
|
+
}) : onLayout(event);
|
|
13715
|
+
}
|
|
13716
|
+
}
|
|
13717
|
+
}, layoutOnAnimationFrame = function() {
|
|
13718
|
+
status !== "inactive" && Nodes.forEach(updateLayoutIfChanged), rAF(layoutOnAnimationFrame);
|
|
13719
|
+
}, updateLayoutIfChanged2 = updateLayoutIfChanged, layoutOnAnimationFrame2 = layoutOnAnimationFrame, avoidUpdates = !0, queuedUpdates = /* @__PURE__ */ new Map(), (0, import_web.___onDidFinishClientRender)(function() {
|
|
13720
|
+
avoidUpdates = !1, queuedUpdates && (queuedUpdates.forEach(function(cb) {
|
|
13721
|
+
return cb();
|
|
13722
|
+
}), queuedUpdates.clear());
|
|
13723
|
+
}), rAF(layoutOnAnimationFrame)) : process.env.NODE_ENV === "development" && console.warn("No requestAnimationFrame - please polyfill for onLayout to work correctly"));
|
|
13724
|
+
var updateLayoutIfChanged, layoutOnAnimationFrame, updateLayoutIfChanged2, layoutOnAnimationFrame2, avoidUpdates, queuedUpdates, getElementLayoutEvent2 = function(target) {
|
|
13725
|
+
var res = null;
|
|
13726
|
+
if (measureLayout(target, null, function(x, y, width, height, left, top) {
|
|
13727
|
+
res = {
|
|
13728
|
+
nativeEvent: {
|
|
13729
|
+
layout: {
|
|
13730
|
+
x,
|
|
13731
|
+
y,
|
|
13732
|
+
width,
|
|
13733
|
+
height,
|
|
13734
|
+
left,
|
|
13735
|
+
top
|
|
13655
13736
|
},
|
|
13656
|
-
|
|
13657
|
-
}
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13661
|
-
|
|
13737
|
+
target
|
|
13738
|
+
},
|
|
13739
|
+
timeStamp: Date.now()
|
|
13740
|
+
};
|
|
13741
|
+
}), !res) throw new Error("\u203C\uFE0F");
|
|
13742
|
+
return res;
|
|
13743
|
+
}, measureLayout = function(node, relativeTo, callback) {
|
|
13744
|
+
var relativeNode = relativeTo || (node == null ? void 0 : node.parentElement);
|
|
13662
13745
|
if (relativeNode instanceof HTMLElement) {
|
|
13663
|
-
var
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
|
|
13668
|
-
var [nodeDim, relativeNodeDim] = param;
|
|
13669
|
-
if (relativeNodeDim && nodeDim && cache.get(node) === now) {
|
|
13670
|
-
var { x, y, width, height, left, top } = getRelativeDimensions(nodeDim, relativeNodeDim);
|
|
13671
|
-
callback(x, y, width, height, left, top);
|
|
13672
|
-
}
|
|
13673
|
-
});
|
|
13746
|
+
var nodeDim = node.getBoundingClientRect(), relativeNodeDim = relativeNode.getBoundingClientRect();
|
|
13747
|
+
if (relativeNodeDim && nodeDim) {
|
|
13748
|
+
var { x, y, width, height, left, top } = getRelativeDimensions(nodeDim, relativeNodeDim);
|
|
13749
|
+
callback(x, y, width, height, left, top);
|
|
13750
|
+
}
|
|
13674
13751
|
}
|
|
13675
13752
|
}, getRelativeDimensions = function(a, b) {
|
|
13676
13753
|
var { height, left, top, width } = a, x = left - b.left, y = top - b.top;
|
|
@@ -13682,35 +13759,16 @@ var require_useElementLayout_native = __commonJS({
|
|
|
13682
13759
|
left,
|
|
13683
13760
|
top
|
|
13684
13761
|
};
|
|
13685
|
-
}, getBoundingClientRectAsync = function(element) {
|
|
13686
|
-
return new Promise(function(resolve) {
|
|
13687
|
-
function fallbackToSync() {
|
|
13688
|
-
resolve((0, import_getBoundingClientRect.getBoundingClientRect)(element));
|
|
13689
|
-
}
|
|
13690
|
-
var tm2 = setTimeout(fallbackToSync, 10), observer = new IntersectionObserver(function(entries, ob) {
|
|
13691
|
-
var _entries_;
|
|
13692
|
-
clearTimeout(tm2), ob.disconnect(), resolve((_entries_ = entries[0]) === null || _entries_ === void 0 ? void 0 : _entries_.boundingClientRect);
|
|
13693
|
-
}, {
|
|
13694
|
-
threshold: 1e-4
|
|
13695
|
-
});
|
|
13696
|
-
observer.observe(element);
|
|
13697
|
-
});
|
|
13698
13762
|
};
|
|
13699
13763
|
function useElementLayout(ref, onLayout) {
|
|
13700
13764
|
var _ref_current, node = (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.host;
|
|
13701
13765
|
node && onLayout && LayoutHandlers.set(node, onLayout), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
13702
13766
|
var _ref_current2;
|
|
13703
|
-
if (
|
|
13767
|
+
if (onLayout) {
|
|
13704
13768
|
var node2 = (_ref_current2 = ref.current) === null || _ref_current2 === void 0 ? void 0 : _ref_current2.host;
|
|
13705
|
-
if (node2) {
|
|
13706
|
-
LayoutHandlers.
|
|
13707
|
-
|
|
13708
|
-
measureElement(node2).then(onLayout);
|
|
13709
|
-
};
|
|
13710
|
-
return resizeListeners.add(onResize), resizeObserver.observe(node2), function() {
|
|
13711
|
-
LayoutHandlers.delete(node2), resizeListeners.delete(onResize), resizeObserver == null || resizeObserver.unobserve(node2);
|
|
13712
|
-
};
|
|
13713
|
-
}
|
|
13769
|
+
if (node2) return LayoutHandlers.set(node2, onLayout), Nodes.add(node2), onLayout(getElementLayoutEvent2(node2)), function() {
|
|
13770
|
+
Nodes.delete(node2), LayoutHandlers.delete(node2), NodeRectCache.delete(node2);
|
|
13771
|
+
};
|
|
13714
13772
|
}
|
|
13715
13773
|
}, [
|
|
13716
13774
|
ref,
|
|
@@ -13819,86 +13877,6 @@ var require_Pressability_native = __commonJS({
|
|
|
13819
13877
|
}
|
|
13820
13878
|
});
|
|
13821
13879
|
|
|
13822
|
-
// ../../core/core/dist/cjs/addNativeValidStyles.native.js
|
|
13823
|
-
var require_addNativeValidStyles_native = __commonJS({
|
|
13824
|
-
"../../core/core/dist/cjs/addNativeValidStyles.native.js"(exports2, module2) {
|
|
13825
|
-
"use strict";
|
|
13826
|
-
var __defProp2 = Object.defineProperty, __getOwnPropDesc2 = Object.getOwnPropertyDescriptor, __getOwnPropNames2 = Object.getOwnPropertyNames, __hasOwnProp2 = Object.prototype.hasOwnProperty, __export2 = function(target, all) {
|
|
13827
|
-
for (var name in all) __defProp2(target, name, {
|
|
13828
|
-
get: all[name],
|
|
13829
|
-
enumerable: !0
|
|
13830
|
-
});
|
|
13831
|
-
}, __copyProps2 = function(to, from, except, desc) {
|
|
13832
|
-
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
13833
|
-
if (from && typeof from == "object" || typeof from == "function") try {
|
|
13834
|
-
for (var _loop = function() {
|
|
13835
|
-
var key = _step.value;
|
|
13836
|
-
!__hasOwnProp2.call(to, key) && key !== except && __defProp2(to, key, {
|
|
13837
|
-
get: function() {
|
|
13838
|
-
return from[key];
|
|
13839
|
-
},
|
|
13840
|
-
enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable
|
|
13841
|
-
});
|
|
13842
|
-
}, _iterator = __getOwnPropNames2(from)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) _loop();
|
|
13843
|
-
} catch (err) {
|
|
13844
|
-
_didIteratorError = !0, _iteratorError = err;
|
|
13845
|
-
} finally {
|
|
13846
|
-
try {
|
|
13847
|
-
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
13848
|
-
} finally {
|
|
13849
|
-
if (_didIteratorError)
|
|
13850
|
-
throw _iteratorError;
|
|
13851
|
-
}
|
|
13852
|
-
}
|
|
13853
|
-
return to;
|
|
13854
|
-
}, __toCommonJS2 = function(mod) {
|
|
13855
|
-
return __copyProps2(__defProp2({}, "__esModule", {
|
|
13856
|
-
value: !0
|
|
13857
|
-
}), mod);
|
|
13858
|
-
}, addNativeValidStyles_native_exports = {};
|
|
13859
|
-
__export2(addNativeValidStyles_native_exports, {
|
|
13860
|
-
addNativeValidStyles: function() {
|
|
13861
|
-
return addNativeValidStyles;
|
|
13862
|
-
}
|
|
13863
|
-
});
|
|
13864
|
-
module2.exports = __toCommonJS2(addNativeValidStyles_native_exports);
|
|
13865
|
-
var import_helpers = require_index_native7();
|
|
13866
|
-
function getReactNativeVersion() {
|
|
13867
|
-
var version = process.env.REACT_NATIVE_VERSION || "";
|
|
13868
|
-
if (!process.env.REACT_NATIVE_VERSION) try {
|
|
13869
|
-
var ReactNativeOfficalVersion = require("react-native/Libraries/Core/ReactNativeVersion");
|
|
13870
|
-
if (ReactNativeOfficalVersion) {
|
|
13871
|
-
var { version: { major, minor, patch } } = ReactNativeOfficalVersion;
|
|
13872
|
-
version = `${major}.${minor}.${patch}`;
|
|
13873
|
-
}
|
|
13874
|
-
} catch {
|
|
13875
|
-
} finally {
|
|
13876
|
-
version || (version = "0.77");
|
|
13877
|
-
}
|
|
13878
|
-
var [major1, minor1, patch1] = version.split(".");
|
|
13879
|
-
return [
|
|
13880
|
-
+major1,
|
|
13881
|
-
+minor1,
|
|
13882
|
-
+patch1
|
|
13883
|
-
];
|
|
13884
|
-
}
|
|
13885
|
-
function addNativeValidStyles() {
|
|
13886
|
-
var [major, minor] = getReactNativeVersion();
|
|
13887
|
-
if (major === 0 && minor >= 77) {
|
|
13888
|
-
var additional = {
|
|
13889
|
-
boxSizing: !0,
|
|
13890
|
-
mixBlendMode: !0,
|
|
13891
|
-
outlineWidth: !0,
|
|
13892
|
-
outlineStyle: !0,
|
|
13893
|
-
outlineSpread: !0,
|
|
13894
|
-
outlineColor: !0
|
|
13895
|
-
};
|
|
13896
|
-
Object.assign(import_helpers.validStyles, additional), Object.assign(import_helpers.stylePropsAll, additional);
|
|
13897
|
-
}
|
|
13898
|
-
}
|
|
13899
|
-
}
|
|
13900
|
-
});
|
|
13901
|
-
|
|
13902
13880
|
// ../../core/core/dist/cjs/reactNativeTypes.native.js
|
|
13903
13881
|
var require_reactNativeTypes_native = __commonJS({
|
|
13904
13882
|
"../../core/core/dist/cjs/reactNativeTypes.native.js"(exports2, module2) {
|
|
@@ -13998,10 +13976,16 @@ var require_index_native18 = __commonJS({
|
|
|
13998
13976
|
},
|
|
13999
13977
|
createTamagui: function() {
|
|
14000
13978
|
return createTamagui2;
|
|
13979
|
+
},
|
|
13980
|
+
getElementLayoutEvent: function() {
|
|
13981
|
+
return import_useElementLayout2.getElementLayoutEvent;
|
|
13982
|
+
},
|
|
13983
|
+
setOnLayoutStrategy: function() {
|
|
13984
|
+
return import_useElementLayout2.setOnLayoutStrategy;
|
|
14001
13985
|
}
|
|
14002
13986
|
});
|
|
14003
13987
|
module2.exports = __toCommonJS2(index_exports2);
|
|
14004
|
-
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(),
|
|
13988
|
+
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();
|
|
14005
13989
|
__reExport2(index_exports2, require_index_native14(), module2.exports);
|
|
14006
13990
|
__reExport2(index_exports2, require_reactNativeTypes_native(), module2.exports);
|
|
14007
13991
|
(0, import_addNativeValidStyles.addNativeValidStyles)();
|
|
@@ -16069,14 +16053,14 @@ var require_useStackedZIndex_native = __commonJS({
|
|
|
16069
16053
|
module2.exports = __toCommonJS2(useStackedZIndex_exports);
|
|
16070
16054
|
var import_react3 = require("react"), import_context = require_context_native(), ZIndicesByContext = {}, CurrentPortalZIndices = {}, useStackedZIndex = function(props) {
|
|
16071
16055
|
if (process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL) {
|
|
16072
|
-
var { stackZIndex, zIndex: zIndexProp
|
|
16073
|
-
if (stackZIndex && stackZIndex !== "global") {
|
|
16056
|
+
var { stackZIndex, zIndex: zIndexProp } = props, id = (0, import_react3.useId)(), zIndex = (0, import_react3.useMemo)(function() {
|
|
16057
|
+
if (stackZIndex && stackZIndex !== "global" && zIndexProp === void 0) {
|
|
16074
16058
|
var highest = Object.values(CurrentPortalZIndices).reduce(function(acc, cur) {
|
|
16075
16059
|
return Math.max(acc, cur);
|
|
16076
16060
|
}, 0);
|
|
16077
16061
|
return Math.max(stackZIndex === !0 ? 1 : stackZIndex, highest + 1);
|
|
16078
16062
|
}
|
|
16079
|
-
return zIndexProp
|
|
16063
|
+
return zIndexProp ?? 1e3;
|
|
16080
16064
|
}, [
|
|
16081
16065
|
stackZIndex
|
|
16082
16066
|
]);
|
|
@@ -31704,6 +31688,7 @@ __export(index_exports, {
|
|
|
31704
31688
|
mediaQueryConfig: () => import_core11.mediaQueryConfig,
|
|
31705
31689
|
mediaState: () => import_core11.mediaState,
|
|
31706
31690
|
setConfig: () => import_core11.setConfig,
|
|
31691
|
+
setOnLayoutStrategy: () => import_core11.setOnLayoutStrategy,
|
|
31707
31692
|
setupDev: () => import_core11.setupDev,
|
|
31708
31693
|
setupReactNative: () => import_core11.setupReactNative,
|
|
31709
31694
|
spacedChildren: () => import_core11.spacedChildren,
|
|
@@ -32131,6 +32116,7 @@ var import_core11 = __toESM(require_index_native18());
|
|
|
32131
32116
|
mediaQueryConfig,
|
|
32132
32117
|
mediaState,
|
|
32133
32118
|
setConfig,
|
|
32119
|
+
setOnLayoutStrategy,
|
|
32134
32120
|
setupDev,
|
|
32135
32121
|
setupReactNative,
|
|
32136
32122
|
spacedChildren,
|