tamagui 1.134.4 → 1.135.0
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/createTamagui.native.js.map +3 -3
- package/dist/cjs/helpers/inputHelpers.native.js.map +3 -3
- package/dist/cjs/index.native.js.map +2 -2
- package/dist/cjs/lib/linear-gradient.native.js.map +2 -2
- package/dist/cjs/linear-gradient.native.js.map +2 -2
- package/dist/cjs/react-native-web/Dimensions.native.js.map +3 -3
- package/dist/cjs/setup.native.js.map +3 -3
- package/dist/cjs/viewTypes.native.js.map +2 -2
- package/dist/cjs/views/Anchor.native.js.map +3 -3
- package/dist/cjs/views/EnsureFlexed.native.js.map +3 -3
- package/dist/cjs/views/Fieldset.native.js.map +3 -3
- package/dist/cjs/views/Input.native.js.map +3 -3
- package/dist/cjs/views/Spinner.native.js.map +3 -3
- package/dist/cjs/views/TamaguiProvider.native.js.map +3 -3
- package/dist/cjs/views/TamaguiProvider.server.native.js.map +3 -3
- package/dist/cjs/views/Text.native.js.map +3 -3
- package/dist/cjs/views/TextArea.native.js.map +3 -3
- package/dist/cjs/views/VisuallyHidden.native.js.map +3 -3
- package/dist/esm/lib/linear-gradient.native.js.map +1 -1
- package/dist/jsx/createTamagui.native.js.map +3 -3
- package/dist/jsx/helpers/inputHelpers.native.js.map +3 -3
- package/dist/jsx/index.native.js.map +3 -3
- package/dist/jsx/lib/linear-gradient.native.js.map +1 -1
- package/dist/jsx/linear-gradient.native.js.map +3 -3
- package/dist/jsx/react-native-web/Dimensions.native.js.map +3 -3
- package/dist/jsx/setup.native.js.map +3 -3
- package/dist/jsx/views/Anchor.native.js.map +3 -3
- package/dist/jsx/views/EnsureFlexed.native.js.map +3 -3
- package/dist/jsx/views/Fieldset.native.js.map +3 -3
- package/dist/jsx/views/Input.native.js.map +3 -3
- package/dist/jsx/views/Spinner.native.js.map +3 -3
- package/dist/jsx/views/TamaguiProvider.native.js.map +3 -3
- package/dist/jsx/views/TamaguiProvider.server.native.js.map +3 -3
- package/dist/jsx/views/Text.native.js.map +3 -3
- package/dist/jsx/views/TextArea.native.js.map +3 -3
- package/dist/jsx/views/VisuallyHidden.native.js.map +3 -3
- package/dist/native.js +134 -106
- package/dist/native.js.map +3 -3
- package/dist/test.native.js +133 -105
- package/dist/test.native.js.map +3 -3
- package/package.json +55 -55
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["
|
|
4
|
-
"mappings": "AAAA,
|
|
5
|
-
"names": [
|
|
3
|
+
"sources": ["../../../src/views/VisuallyHidden.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAAS,OAAO,cAAc;AACvB,IAAI,iBAAiB,OAAO,OAAO;AAAA,EACtC,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EACf,UAAU;AAAA,IACN,oBAAoB;AAAA,MAChB,MAAM;AAAA,QACF,UAAU;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,MACZ;AAAA,IACJ;AAAA,IACA,SAAS;AAAA,MACL,MAAM;AAAA,QACF,UAAU;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,SAAS;AAAA,QACT,eAAe;AAAA,MACnB;AAAA,IACJ;AAAA,EACJ;AACJ,CAAC;AAED,eAAe,mBAAsB;",
|
|
5
|
+
"names": []
|
|
6
6
|
}
|
package/dist/native.js
CHANGED
|
@@ -13354,6 +13354,9 @@ var require_index_native19 = __commonJS({
|
|
|
13354
13354
|
}), mod);
|
|
13355
13355
|
}, index_exports2 = {};
|
|
13356
13356
|
__export2(index_exports2, {
|
|
13357
|
+
LayoutMeasurementController: function() {
|
|
13358
|
+
return LayoutMeasurementController2;
|
|
13359
|
+
},
|
|
13357
13360
|
createMeasure: function() {
|
|
13358
13361
|
return createMeasure;
|
|
13359
13362
|
},
|
|
@@ -13392,18 +13395,29 @@ var require_index_native19 = __commonJS({
|
|
|
13392
13395
|
}
|
|
13393
13396
|
});
|
|
13394
13397
|
module2.exports = __toCommonJS2(index_exports2);
|
|
13395
|
-
var import_constants4 = require_index_native(), import_is_equal_shallow = require_index_native12(), LayoutHandlers = /* @__PURE__ */ new WeakMap(), Nodes = /* @__PURE__ */ new Set(), IntersectionState = /* @__PURE__ */ new WeakMap(),
|
|
13398
|
+
var import_jsx_runtime6 = require("react/jsx-runtime"), import_constants4 = require_index_native(), import_is_equal_shallow = require_index_native12(), import_react3 = require("react"), LayoutHandlers = /* @__PURE__ */ new WeakMap(), LayoutDisableKey = /* @__PURE__ */ new WeakMap(), Nodes = /* @__PURE__ */ new Set(), IntersectionState = /* @__PURE__ */ new WeakMap(), DisableLayoutContextValues = {}, DisableLayoutContextKey = /* @__PURE__ */ (0, import_react3.createContext)(""), ENABLE = import_constants4.isClient && typeof IntersectionObserver < "u", LayoutMeasurementController2 = function(param) {
|
|
13399
|
+
var { disable, children } = param, id = (0, import_react3.useId)();
|
|
13400
|
+
return (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
13401
|
+
DisableLayoutContextValues[id] = disable;
|
|
13402
|
+
}, [
|
|
13403
|
+
disable,
|
|
13404
|
+
id
|
|
13405
|
+
]), /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DisableLayoutContextKey.Provider, {
|
|
13406
|
+
value: id,
|
|
13407
|
+
children
|
|
13408
|
+
});
|
|
13409
|
+
}, globalIntersectionObserver = null, strategy = "async";
|
|
13396
13410
|
function setOnLayoutStrategy3(state) {
|
|
13397
13411
|
strategy = state;
|
|
13398
13412
|
}
|
|
13399
|
-
var NodeRectCache = /* @__PURE__ */ new WeakMap(),
|
|
13413
|
+
var NodeRectCache = /* @__PURE__ */ new WeakMap(), LastChangeTime = /* @__PURE__ */ new WeakMap(), avoidUpdates = !0, queuedUpdates = /* @__PURE__ */ new Map();
|
|
13400
13414
|
function enable() {
|
|
13401
13415
|
avoidUpdates && (avoidUpdates = !1, queuedUpdates && (queuedUpdates.forEach(function(cb) {
|
|
13402
13416
|
return cb();
|
|
13403
13417
|
}), queuedUpdates.clear()));
|
|
13404
13418
|
}
|
|
13405
13419
|
function startGlobalObservers() {
|
|
13406
|
-
!
|
|
13420
|
+
!ENABLE || globalIntersectionObserver || (globalIntersectionObserver = new IntersectionObserver(function(entries) {
|
|
13407
13421
|
entries.forEach(function(entry) {
|
|
13408
13422
|
var node = entry.target;
|
|
13409
13423
|
IntersectionState.get(node) !== entry.isIntersecting && IntersectionState.set(node, entry.isIntersecting);
|
|
@@ -13412,29 +13426,29 @@ var require_index_native19 = __commonJS({
|
|
|
13412
13426
|
threshold: 0
|
|
13413
13427
|
}));
|
|
13414
13428
|
}
|
|
13415
|
-
if (
|
|
13416
|
-
|
|
13429
|
+
if (ENABLE) {
|
|
13430
|
+
BoundingRects = /* @__PURE__ */ new WeakMap();
|
|
13417
13431
|
async function updateLayoutIfChanged(node) {
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
+
var onLayout = LayoutHandlers.get(node);
|
|
13433
|
+
if (typeof onLayout == "function") {
|
|
13434
|
+
var parentNode = node.parentElement;
|
|
13435
|
+
if (parentNode) {
|
|
13436
|
+
var nodeRect, parentRect;
|
|
13437
|
+
if (strategy === "async") {
|
|
13438
|
+
var [nr, pr] = await Promise.all([
|
|
13439
|
+
BoundingRects.get(node),
|
|
13440
|
+
BoundingRects.get(parentNode)
|
|
13441
|
+
]);
|
|
13442
|
+
if (!nr || !pr) return;
|
|
13443
|
+
nodeRect = nr, parentRect = pr;
|
|
13444
|
+
} else nodeRect = node.getBoundingClientRect(), parentRect = parentNode.getBoundingClientRect();
|
|
13445
|
+
if (!(!nodeRect || !parentRect)) {
|
|
13432
13446
|
var cachedRect = NodeRectCache.get(node), cachedParentRect = NodeRectCache.get(parentNode);
|
|
13433
|
-
if (!cachedRect || // has changed one rect
|
|
13447
|
+
if (!cachedRect || !cachedParentRect || // has changed one rect
|
|
13434
13448
|
// @ts-expect-error DOMRectReadOnly can go into object
|
|
13435
|
-
!(0, import_is_equal_shallow.isEqualShallow)(cachedRect, nodeRect)
|
|
13436
|
-
|
|
13437
|
-
NodeRectCache.set(node, nodeRect),
|
|
13449
|
+
!(0, import_is_equal_shallow.isEqualShallow)(cachedRect, nodeRect) || // @ts-expect-error DOMRectReadOnly can go into object
|
|
13450
|
+
!(0, import_is_equal_shallow.isEqualShallow)(cachedParentRect, parentRect)) {
|
|
13451
|
+
NodeRectCache.set(node, nodeRect), NodeRectCache.set(parentNode, parentRect);
|
|
13438
13452
|
var event = getElementLayoutEvent(nodeRect, parentRect);
|
|
13439
13453
|
avoidUpdates ? queuedUpdates.set(node, function() {
|
|
13440
13454
|
return onLayout(event);
|
|
@@ -13444,14 +13458,10 @@ var require_index_native19 = __commonJS({
|
|
|
13444
13458
|
}
|
|
13445
13459
|
}
|
|
13446
13460
|
}
|
|
13447
|
-
|
|
13461
|
+
userSkipVal = process.env.TAMAGUI_LAYOUT_FRAME_SKIP, RUN_EVERY_X_FRAMES = userSkipVal ? +userSkipVal : 14;
|
|
13448
13462
|
async function layoutOnAnimationFrame() {
|
|
13449
13463
|
if (strategy !== "off") {
|
|
13450
|
-
|
|
13451
|
-
rAF(layoutOnAnimationFrame);
|
|
13452
|
-
return;
|
|
13453
|
-
}
|
|
13454
|
-
frameCount === Number.MAX_SAFE_INTEGER && (frameCount = 0), await new Promise(function(res) {
|
|
13464
|
+
var visibleNodes = [], didRun = await new Promise(function(res) {
|
|
13455
13465
|
var io = new IntersectionObserver(function(entries) {
|
|
13456
13466
|
io.disconnect();
|
|
13457
13467
|
var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
|
|
@@ -13469,14 +13479,17 @@ var require_index_native19 = __commonJS({
|
|
|
13469
13479
|
if (_didIteratorError2) throw _iteratorError2;
|
|
13470
13480
|
}
|
|
13471
13481
|
}
|
|
13472
|
-
res();
|
|
13482
|
+
res(!0);
|
|
13473
13483
|
}, {
|
|
13474
13484
|
threshold: 0
|
|
13475
|
-
}), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
13485
|
+
}), didObserve = !1, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
13476
13486
|
try {
|
|
13477
13487
|
for (var _iterator = Nodes[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
13478
13488
|
var node = _step.value;
|
|
13479
|
-
node.parentElement instanceof HTMLElement
|
|
13489
|
+
if (node.parentElement instanceof HTMLElement) {
|
|
13490
|
+
var disableKey = LayoutDisableKey.get(node);
|
|
13491
|
+
disableKey && DisableLayoutContextValues[disableKey] === !0 || IntersectionState.get(node) !== !1 && (didObserve = !0, io.observe(node), io.observe(node.parentElement), visibleNodes.push(node));
|
|
13492
|
+
}
|
|
13480
13493
|
}
|
|
13481
13494
|
} catch (err) {
|
|
13482
13495
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -13487,14 +13500,17 @@ var require_index_native19 = __commonJS({
|
|
|
13487
13500
|
if (_didIteratorError) throw _iteratorError;
|
|
13488
13501
|
}
|
|
13489
13502
|
}
|
|
13490
|
-
|
|
13503
|
+
didObserve || res(!1);
|
|
13504
|
+
});
|
|
13505
|
+
didRun && visibleNodes.forEach(function(node) {
|
|
13491
13506
|
updateLayoutIfChanged(node);
|
|
13492
13507
|
});
|
|
13493
13508
|
}
|
|
13494
|
-
|
|
13509
|
+
setTimeout(layoutOnAnimationFrame, 16.6667 * RUN_EVERY_X_FRAMES);
|
|
13495
13510
|
}
|
|
13496
|
-
|
|
13497
|
-
|
|
13511
|
+
layoutOnAnimationFrame();
|
|
13512
|
+
}
|
|
13513
|
+
var BoundingRects, userSkipVal, RUN_EVERY_X_FRAMES, getElementLayoutEvent = function(nodeRect, parentRect) {
|
|
13498
13514
|
return {
|
|
13499
13515
|
nativeEvent: {
|
|
13500
13516
|
layout: getRelativeDimensions(nodeRect, parentRect),
|
|
@@ -13514,8 +13530,8 @@ var require_index_native19 = __commonJS({
|
|
|
13514
13530
|
};
|
|
13515
13531
|
};
|
|
13516
13532
|
function useElementLayout(ref, onLayout) {
|
|
13517
|
-
var _ref_current, node = ensureWebElement((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.host);
|
|
13518
|
-
node && onLayout && LayoutHandlers.set(node, onLayout), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
13533
|
+
var _ref_current, disableKey = (0, import_react3.useContext)(DisableLayoutContextKey), node = ensureWebElement((_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.host);
|
|
13534
|
+
node && onLayout && (LayoutHandlers.set(node, onLayout), LayoutDisableKey.set(node, disableKey)), (0, import_constants4.useIsomorphicLayoutEffect)(function() {
|
|
13519
13535
|
var _ref_current2;
|
|
13520
13536
|
if (onLayout) {
|
|
13521
13537
|
var node2 = (_ref_current2 = ref.current) === null || _ref_current2 === void 0 ? void 0 : _ref_current2.host;
|
|
@@ -14109,6 +14125,9 @@ var require_index_native20 = __commonJS({
|
|
|
14109
14125
|
}), mod);
|
|
14110
14126
|
}, index_exports2 = {};
|
|
14111
14127
|
__export2(index_exports2, {
|
|
14128
|
+
LayoutMeasurementController: function() {
|
|
14129
|
+
return import_use_element_layout2.LayoutMeasurementController;
|
|
14130
|
+
},
|
|
14112
14131
|
Stack: function() {
|
|
14113
14132
|
return Stack2;
|
|
14114
14133
|
},
|
|
@@ -18670,59 +18689,62 @@ var require_SheetImplementationCustom_native = __commonJS({
|
|
|
18670
18689
|
]);
|
|
18671
18690
|
var forcedContentHeight = hasFit ? void 0 : snapPointsMode === "percent" ? `${maxSnapPoint}${import_constants4.isWeb ? "dvh" : "%"}` : maxSnapPoint, setHasScrollView = import_react3.default.useCallback(function(val) {
|
|
18672
18691
|
hasScrollView.current = val;
|
|
18673
|
-
}, []), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
18674
|
-
|
|
18675
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime6.
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
left: 0,
|
|
18691
|
-
right: 0,
|
|
18692
|
-
bottom: 0,
|
|
18693
|
-
pointerEvents: "none"
|
|
18694
|
-
},
|
|
18695
|
-
onLayout: handleMaxContentViewLayout
|
|
18696
|
-
}),
|
|
18697
|
-
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AnimatedView, {
|
|
18698
|
-
ref,
|
|
18699
|
-
...panResponder == null ? void 0 : panResponder.panHandlers,
|
|
18700
|
-
onLayout: handleAnimationViewLayout,
|
|
18701
|
-
// @ts-ignore for CSS driver this is necessary to attach the transition
|
|
18702
|
-
// also motion driver at least though i suspect all drivers?
|
|
18703
|
-
animation: isDragging || disableAnimation ? null : animation,
|
|
18704
|
-
// @ts-ignore
|
|
18705
|
-
disableClassName: !0,
|
|
18706
|
-
style: [
|
|
18707
|
-
{
|
|
18692
|
+
}, []), contents = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.LayoutMeasurementController, {
|
|
18693
|
+
disable: !open,
|
|
18694
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_contexts.ParentSheetContext.Provider, {
|
|
18695
|
+
value: nextParentContext,
|
|
18696
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_SheetContext.SheetProvider, {
|
|
18697
|
+
...providerProps,
|
|
18698
|
+
setHasScrollView,
|
|
18699
|
+
children: [
|
|
18700
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_animate_presence.AnimatePresence, {
|
|
18701
|
+
custom: {
|
|
18702
|
+
open
|
|
18703
|
+
},
|
|
18704
|
+
children: shouldHideParentSheet || !open ? null : overlayComponent
|
|
18705
|
+
}),
|
|
18706
|
+
snapPointsMode !== "percent" && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_native4.View, {
|
|
18707
|
+
style: {
|
|
18708
|
+
opacity: 0,
|
|
18708
18709
|
position: "absolute",
|
|
18709
|
-
|
|
18710
|
-
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
...(shouldHideParentSheet || !open) && {
|
|
18715
|
-
pointerEvents: "none"
|
|
18716
|
-
}
|
|
18710
|
+
top: 0,
|
|
18711
|
+
left: 0,
|
|
18712
|
+
right: 0,
|
|
18713
|
+
bottom: 0,
|
|
18714
|
+
pointerEvents: "none"
|
|
18717
18715
|
},
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18716
|
+
onLayout: handleMaxContentViewLayout
|
|
18717
|
+
}),
|
|
18718
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(AnimatedView, {
|
|
18719
|
+
ref,
|
|
18720
|
+
...panResponder == null ? void 0 : panResponder.panHandlers,
|
|
18721
|
+
onLayout: handleAnimationViewLayout,
|
|
18722
|
+
// @ts-ignore for CSS driver this is necessary to attach the transition
|
|
18723
|
+
// also motion driver at least though i suspect all drivers?
|
|
18724
|
+
animation: isDragging || disableAnimation ? null : animation,
|
|
18725
|
+
// @ts-ignore
|
|
18726
|
+
disableClassName: !0,
|
|
18727
|
+
style: [
|
|
18728
|
+
{
|
|
18729
|
+
position: "absolute",
|
|
18730
|
+
zIndex,
|
|
18731
|
+
width: "100%",
|
|
18732
|
+
height: forcedContentHeight,
|
|
18733
|
+
minHeight: forcedContentHeight,
|
|
18734
|
+
opacity: shouldHideParentSheet ? 0 : opacity,
|
|
18735
|
+
...(shouldHideParentSheet || !open) && {
|
|
18736
|
+
pointerEvents: "none"
|
|
18737
|
+
}
|
|
18738
|
+
},
|
|
18739
|
+
animatedStyle
|
|
18740
|
+
],
|
|
18741
|
+
children: (
|
|
18742
|
+
/* <AdaptProvider>{props.children}</AdaptProvider> */
|
|
18743
|
+
props.children
|
|
18744
|
+
)
|
|
18745
|
+
})
|
|
18746
|
+
]
|
|
18747
|
+
})
|
|
18726
18748
|
})
|
|
18727
18749
|
});
|
|
18728
18750
|
if (!import_portal2.USE_NATIVE_PORTAL) {
|
|
@@ -19841,16 +19863,19 @@ var require_Dialog_native = __commonJS({
|
|
|
19841
19863
|
// NOTE: we remove the inner frame, but not the portal itself
|
|
19842
19864
|
// saw a bug when we removed and re-added portals that caused stale inner contents of the portal
|
|
19843
19865
|
// seems like a React bug itself but leaving this for now as it fixes
|
|
19844
|
-
isFullyHidden && !isAdapted ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
19845
|
-
|
|
19846
|
-
|
|
19847
|
-
|
|
19848
|
-
|
|
19849
|
-
|
|
19850
|
-
|
|
19851
|
-
|
|
19852
|
-
|
|
19853
|
-
|
|
19866
|
+
isFullyHidden && !isAdapted ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.LayoutMeasurementController, {
|
|
19867
|
+
disable: !isMountedOrOpen,
|
|
19868
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DialogPortalFrame, {
|
|
19869
|
+
ref,
|
|
19870
|
+
...import_constants4.isWeb && isMountedOrOpen && {
|
|
19871
|
+
"aria-modal": !0
|
|
19872
|
+
},
|
|
19873
|
+
// passThrough={isAdapted}
|
|
19874
|
+
pointerEvents: isMountedOrOpen ? "auto" : "none",
|
|
19875
|
+
...frameProps,
|
|
19876
|
+
className: "_no_backdrop " + (frameProps.className || ""),
|
|
19877
|
+
children: contents
|
|
19878
|
+
})
|
|
19854
19879
|
})
|
|
19855
19880
|
);
|
|
19856
19881
|
return import_constants4.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_portal2.Portal, {
|
|
@@ -24478,13 +24503,13 @@ var require_Popper_native = __commonJS({
|
|
|
24478
24503
|
Object.assign(setupOptions, options);
|
|
24479
24504
|
}
|
|
24480
24505
|
function Popper(props) {
|
|
24481
|
-
var { children, size: size2, strategy = "absolute", placement = "bottom", stayInFrame, allowFlip, offset: offset2, disableRTL, resize, passThrough, open, scope } = props, [arrowEl, setArrow] = React4.useState(null), [arrowSize, setArrowSize] = React4.useState(0), offsetOptions = offset2 ?? arrowSize, floatingStyle = React4.useRef({}), floating = (0, import_floating.useFloating)({
|
|
24482
|
-
open:
|
|
24506
|
+
var { children, size: size2, strategy = "absolute", placement = "bottom", stayInFrame, allowFlip, offset: offset2, disableRTL, resize, passThrough, open, scope } = props, [arrowEl, setArrow] = React4.useState(null), [arrowSize, setArrowSize] = React4.useState(0), offsetOptions = offset2 ?? arrowSize, floatingStyle = React4.useRef({}), isOpen = passThrough ? !1 : open || !0, floating = (0, import_floating.useFloating)({
|
|
24507
|
+
open: isOpen,
|
|
24483
24508
|
strategy,
|
|
24484
24509
|
placement,
|
|
24485
24510
|
sameScrollView: !1,
|
|
24486
24511
|
// this only takes effect on native
|
|
24487
|
-
whileElementsMounted:
|
|
24512
|
+
whileElementsMounted: isOpen ? import_floating.autoUpdate : void 0,
|
|
24488
24513
|
platform: disableRTL ?? setupOptions.disableRTL ? {
|
|
24489
24514
|
...import_floating.platform,
|
|
24490
24515
|
isRTL(element) {
|
|
@@ -24542,10 +24567,13 @@ var require_Popper_native = __commonJS({
|
|
|
24542
24567
|
JSON.stringify(middlewareData.arrow || null),
|
|
24543
24568
|
floating.isPositioned
|
|
24544
24569
|
]);
|
|
24545
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
24546
|
-
|
|
24547
|
-
|
|
24548
|
-
|
|
24570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_core12.LayoutMeasurementController, {
|
|
24571
|
+
disable: !isOpen,
|
|
24572
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PopperProvider, {
|
|
24573
|
+
scope,
|
|
24574
|
+
...popperContext,
|
|
24575
|
+
children
|
|
24576
|
+
})
|
|
24549
24577
|
});
|
|
24550
24578
|
}
|
|
24551
24579
|
var PopperAnchor = import_stacks3.YStack.extractable(/* @__PURE__ */ React4.forwardRef(function(props, forwardedRef) {
|