@tamagui/popover 3.0.7 → 3.0.8
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/Popover.native.cjs +15 -15
- package/dist/cjs/Popover.native.js +15 -15
- package/dist/cjs/Popover.native.js.map +1 -1
- package/dist/cjs/useFloatingContext.native.cjs +1 -1
- package/dist/cjs/useFloatingContext.native.js +1 -1
- package/dist/cjs/useFloatingContext.native.js.map +1 -1
- package/dist/esm/Popover.native.js +15 -15
- package/dist/esm/Popover.native.js.map +1 -1
- package/dist/esm/useFloatingContext.native.js +1 -1
- package/dist/esm/useFloatingContext.native.js.map +1 -1
- package/dist/jsx/Popover.native.cjs +15 -15
- package/dist/jsx/Popover.native.js +15 -15
- package/dist/jsx/Popover.native.js.map +1 -1
- package/dist/jsx/useFloatingContext.native.cjs +1 -1
- package/dist/jsx/useFloatingContext.native.js +1 -1
- package/dist/jsx/useFloatingContext.native.js.map +1 -1
- package/package.json +22 -22
|
@@ -69,17 +69,17 @@ var React = __toESM(require("react"), 1);
|
|
|
69
69
|
var import_useFloatingContext = require("./useFloatingContext.native.js");
|
|
70
70
|
var needsRepropagation = (0, import_portal.needsPortalRepropagation)();
|
|
71
71
|
var openPopovers = /* @__PURE__ */ new Set();
|
|
72
|
-
var hasOpenPopovers = function() {
|
|
72
|
+
var hasOpenPopovers = function hasOpenPopovers2() {
|
|
73
73
|
return openPopovers.size > 0;
|
|
74
74
|
};
|
|
75
|
-
var closeOpenPopovers = function() {
|
|
75
|
+
var closeOpenPopovers = function closeOpenPopovers2() {
|
|
76
76
|
if (openPopovers.size === 0) return false;
|
|
77
77
|
openPopovers.forEach(function(setOpen) {
|
|
78
78
|
return setOpen(false);
|
|
79
79
|
});
|
|
80
80
|
return true;
|
|
81
81
|
};
|
|
82
|
-
var closeLastOpenedPopover = function() {
|
|
82
|
+
var closeLastOpenedPopover = function closeLastOpenedPopover2() {
|
|
83
83
|
if (openPopovers.size === 0) return false;
|
|
84
84
|
var last = Array.from(openPopovers).pop();
|
|
85
85
|
if (last) {
|
|
@@ -177,7 +177,7 @@ var PopoverContextProvider = /* @__PURE__ */ React.memo(function(param) {
|
|
|
177
177
|
})
|
|
178
178
|
});
|
|
179
179
|
});
|
|
180
|
-
var voidFn = function() {};
|
|
180
|
+
var voidFn = function voidFn2() {};
|
|
181
181
|
var PopoverAnchor = /* @__PURE__ */ React.memo((0, import_core.createRefComponent)(function PopoverAnchor2(props, forwardedRef) {
|
|
182
182
|
var { scope, ...rest } = props;
|
|
183
183
|
var { onCustomAnchorAdd, onCustomAnchorRemove } = usePopoverContext(scope) || {};
|
|
@@ -214,7 +214,7 @@ var PopoverTrigger = /* @__PURE__ */ React.memo((0, import_core.createRefCompone
|
|
|
214
214
|
triggerId
|
|
215
215
|
]);
|
|
216
216
|
if (!rest.children) return null;
|
|
217
|
-
var activateSelf = function() {
|
|
217
|
+
var activateSelf = function activateSelf2() {
|
|
218
218
|
triggerContext.setActiveTrigger(triggerId);
|
|
219
219
|
var el = triggerElRef.current;
|
|
220
220
|
if (el) triggerContext.triggerRef.current = el;
|
|
@@ -244,14 +244,14 @@ var PopoverTrigger = /* @__PURE__ */ React.memo((0, import_core.createRefCompone
|
|
|
244
244
|
var virtualRef = React.useMemo(function() {
|
|
245
245
|
if (!anchorTo) return null;
|
|
246
246
|
return { current: {
|
|
247
|
-
getBoundingClientRect: function() {
|
|
247
|
+
getBoundingClientRect: function getBoundingClientRect() {
|
|
248
248
|
return import_constants.isWeb ? DOMRect.fromRect(anchorTo) : anchorTo;
|
|
249
249
|
},
|
|
250
250
|
...!import_constants.isWeb && {
|
|
251
|
-
measure: function(c) {
|
|
251
|
+
measure: function measure(c) {
|
|
252
252
|
return c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);
|
|
253
253
|
},
|
|
254
|
-
measureInWindow: function(c) {
|
|
254
|
+
measureInWindow: function measureInWindow(c) {
|
|
255
255
|
return c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
@@ -275,6 +275,7 @@ var PopoverTrigger = /* @__PURE__ */ React.memo((0, import_core.createRefCompone
|
|
|
275
275
|
});
|
|
276
276
|
}));
|
|
277
277
|
var PopoverContent = (0, import_core.createStyledHOC)(import_popper.PopperContentFrame, function PopoverContent2(props, forwardedRef) {
|
|
278
|
+
var _contentImplProps_pointerEvents;
|
|
278
279
|
var { trapFocus, enableRemoveScroll = false, zIndex: zIndexProp, scope, forceMount, ...contentImplProps } = props;
|
|
279
280
|
var context = usePopoverContext(scope);
|
|
280
281
|
var adaptContext = (0, import_adapt.useAdaptContext)(context.adaptScope);
|
|
@@ -293,7 +294,6 @@ var PopoverContent = (0, import_core.createStyledHOC)(import_popper.PopperConten
|
|
|
293
294
|
if (!open && adaptContext.targetFullyHidden) return null;
|
|
294
295
|
} else if (isFullyHidden && !open) return null;
|
|
295
296
|
}
|
|
296
|
-
var _contentImplProps_pointerEvents;
|
|
297
297
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPortal, {
|
|
298
298
|
passThrough: context.breakpointActive,
|
|
299
299
|
context,
|
|
@@ -338,7 +338,7 @@ var PopoverContent = (0, import_core.createStyledHOC)(import_popper.PopperConten
|
|
|
338
338
|
"opacity",
|
|
339
339
|
"y"
|
|
340
340
|
]) } });
|
|
341
|
-
var useParentContexts = function(scope) {
|
|
341
|
+
var useParentContexts = function useParentContexts2(scope) {
|
|
342
342
|
var context = usePopoverContext(scope);
|
|
343
343
|
var triggerContext = usePopoverTriggerContext(scope);
|
|
344
344
|
return {
|
|
@@ -367,7 +367,7 @@ function RepropagateParentContexts(param) {
|
|
|
367
367
|
})
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
var PortalAdaptSafe = function(param) {
|
|
370
|
+
var PortalAdaptSafe = function PortalAdaptSafe2(param) {
|
|
371
371
|
"use no memo";
|
|
372
372
|
var { children, context } = param;
|
|
373
373
|
if (needsRepropagation) {
|
|
@@ -491,7 +491,7 @@ var Popover = (0, import_helpers.withStaticProperties)((0, import_core.createRef
|
|
|
491
491
|
var [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
492
492
|
prop: openProp,
|
|
493
493
|
defaultProp: defaultOpen || false,
|
|
494
|
-
onChange: function(val) {
|
|
494
|
+
onChange: function onChange(val) {
|
|
495
495
|
onOpenChange === null || onOpenChange === void 0 || onOpenChange(val, viaRef.current);
|
|
496
496
|
}
|
|
497
497
|
});
|
|
@@ -556,15 +556,15 @@ var PopoverInner = (0, import_core.createRefComponent)(function PopoverInner2(pr
|
|
|
556
556
|
React.useImperativeHandle(forwardedRef, function() {
|
|
557
557
|
return {
|
|
558
558
|
anchorTo: setAnchorTo,
|
|
559
|
-
toggle: function() {
|
|
559
|
+
toggle: function toggle() {
|
|
560
560
|
return setOpen(function(prev) {
|
|
561
561
|
return !prev;
|
|
562
562
|
});
|
|
563
563
|
},
|
|
564
|
-
open: function() {
|
|
564
|
+
open: function open2() {
|
|
565
565
|
return setOpen(true);
|
|
566
566
|
},
|
|
567
|
-
close: function() {
|
|
567
|
+
close: function close() {
|
|
568
568
|
return setOpen(false);
|
|
569
569
|
},
|
|
570
570
|
setOpen
|
|
@@ -69,17 +69,17 @@ var React = __toESM(require("react"), 1);
|
|
|
69
69
|
var import_useFloatingContext = require("./useFloatingContext.native.js");
|
|
70
70
|
var needsRepropagation = (0, import_portal.needsPortalRepropagation)();
|
|
71
71
|
var openPopovers = /* @__PURE__ */ new Set();
|
|
72
|
-
var hasOpenPopovers = function() {
|
|
72
|
+
var hasOpenPopovers = function hasOpenPopovers2() {
|
|
73
73
|
return openPopovers.size > 0;
|
|
74
74
|
};
|
|
75
|
-
var closeOpenPopovers = function() {
|
|
75
|
+
var closeOpenPopovers = function closeOpenPopovers2() {
|
|
76
76
|
if (openPopovers.size === 0) return false;
|
|
77
77
|
openPopovers.forEach(function(setOpen) {
|
|
78
78
|
return setOpen(false);
|
|
79
79
|
});
|
|
80
80
|
return true;
|
|
81
81
|
};
|
|
82
|
-
var closeLastOpenedPopover = function() {
|
|
82
|
+
var closeLastOpenedPopover = function closeLastOpenedPopover2() {
|
|
83
83
|
if (openPopovers.size === 0) return false;
|
|
84
84
|
var last = Array.from(openPopovers).pop();
|
|
85
85
|
if (last) {
|
|
@@ -177,7 +177,7 @@ var PopoverContextProvider = /* @__PURE__ */ React.memo(function(param) {
|
|
|
177
177
|
})
|
|
178
178
|
});
|
|
179
179
|
});
|
|
180
|
-
var voidFn = function() {};
|
|
180
|
+
var voidFn = function voidFn2() {};
|
|
181
181
|
var PopoverAnchor = /* @__PURE__ */ React.memo((0, import_core.createRefComponent)(function PopoverAnchor2(props, forwardedRef) {
|
|
182
182
|
var { scope, ...rest } = props;
|
|
183
183
|
var { onCustomAnchorAdd, onCustomAnchorRemove } = usePopoverContext(scope) || {};
|
|
@@ -214,7 +214,7 @@ var PopoverTrigger = /* @__PURE__ */ React.memo((0, import_core.createRefCompone
|
|
|
214
214
|
triggerId
|
|
215
215
|
]);
|
|
216
216
|
if (!rest.children) return null;
|
|
217
|
-
var activateSelf = function() {
|
|
217
|
+
var activateSelf = function activateSelf2() {
|
|
218
218
|
triggerContext.setActiveTrigger(triggerId);
|
|
219
219
|
var el = triggerElRef.current;
|
|
220
220
|
if (el) triggerContext.triggerRef.current = el;
|
|
@@ -244,14 +244,14 @@ var PopoverTrigger = /* @__PURE__ */ React.memo((0, import_core.createRefCompone
|
|
|
244
244
|
var virtualRef = React.useMemo(function() {
|
|
245
245
|
if (!anchorTo) return null;
|
|
246
246
|
return { current: {
|
|
247
|
-
getBoundingClientRect: function() {
|
|
247
|
+
getBoundingClientRect: function getBoundingClientRect() {
|
|
248
248
|
return import_constants.isWeb ? DOMRect.fromRect(anchorTo) : anchorTo;
|
|
249
249
|
},
|
|
250
250
|
...!import_constants.isWeb && {
|
|
251
|
-
measure: function(c) {
|
|
251
|
+
measure: function measure(c) {
|
|
252
252
|
return c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);
|
|
253
253
|
},
|
|
254
|
-
measureInWindow: function(c) {
|
|
254
|
+
measureInWindow: function measureInWindow(c) {
|
|
255
255
|
return c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
@@ -275,6 +275,7 @@ var PopoverTrigger = /* @__PURE__ */ React.memo((0, import_core.createRefCompone
|
|
|
275
275
|
});
|
|
276
276
|
}));
|
|
277
277
|
var PopoverContent = (0, import_core.createStyledHOC)(import_popper.PopperContentFrame, function PopoverContent2(props, forwardedRef) {
|
|
278
|
+
var _contentImplProps_pointerEvents;
|
|
278
279
|
var { trapFocus, enableRemoveScroll = false, zIndex: zIndexProp, scope, forceMount, ...contentImplProps } = props;
|
|
279
280
|
var context = usePopoverContext(scope);
|
|
280
281
|
var adaptContext = (0, import_adapt.useAdaptContext)(context.adaptScope);
|
|
@@ -293,7 +294,6 @@ var PopoverContent = (0, import_core.createStyledHOC)(import_popper.PopperConten
|
|
|
293
294
|
if (!open && adaptContext.targetFullyHidden) return null;
|
|
294
295
|
} else if (isFullyHidden && !open) return null;
|
|
295
296
|
}
|
|
296
|
-
var _contentImplProps_pointerEvents;
|
|
297
297
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPortal, {
|
|
298
298
|
passThrough: context.breakpointActive,
|
|
299
299
|
context,
|
|
@@ -338,7 +338,7 @@ var PopoverContent = (0, import_core.createStyledHOC)(import_popper.PopperConten
|
|
|
338
338
|
"opacity",
|
|
339
339
|
"y"
|
|
340
340
|
]) } });
|
|
341
|
-
var useParentContexts = function(scope) {
|
|
341
|
+
var useParentContexts = function useParentContexts2(scope) {
|
|
342
342
|
var context = usePopoverContext(scope);
|
|
343
343
|
var triggerContext = usePopoverTriggerContext(scope);
|
|
344
344
|
return {
|
|
@@ -367,7 +367,7 @@ function RepropagateParentContexts(param) {
|
|
|
367
367
|
})
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
var PortalAdaptSafe = function(param) {
|
|
370
|
+
var PortalAdaptSafe = function PortalAdaptSafe2(param) {
|
|
371
371
|
"use no memo";
|
|
372
372
|
var { children, context } = param;
|
|
373
373
|
if (needsRepropagation) {
|
|
@@ -491,7 +491,7 @@ var Popover = (0, import_helpers.withStaticProperties)((0, import_core.createRef
|
|
|
491
491
|
var [open, setOpen] = (0, import_use_controllable_state.useControllableState)({
|
|
492
492
|
prop: openProp,
|
|
493
493
|
defaultProp: defaultOpen || false,
|
|
494
|
-
onChange: function(val) {
|
|
494
|
+
onChange: function onChange(val) {
|
|
495
495
|
onOpenChange === null || onOpenChange === void 0 || onOpenChange(val, viaRef.current);
|
|
496
496
|
}
|
|
497
497
|
});
|
|
@@ -556,15 +556,15 @@ var PopoverInner = (0, import_core.createRefComponent)(function PopoverInner2(pr
|
|
|
556
556
|
React.useImperativeHandle(forwardedRef, function() {
|
|
557
557
|
return {
|
|
558
558
|
anchorTo: setAnchorTo,
|
|
559
|
-
toggle: function() {
|
|
559
|
+
toggle: function toggle() {
|
|
560
560
|
return setOpen(function(prev) {
|
|
561
561
|
return !prev;
|
|
562
562
|
});
|
|
563
563
|
},
|
|
564
|
-
open: function() {
|
|
564
|
+
open: function open2() {
|
|
565
565
|
return setOpen(true);
|
|
566
566
|
},
|
|
567
|
-
close: function() {
|
|
567
|
+
close: function close() {
|
|
568
568
|
return setOpen(false);
|
|
569
569
|
},
|
|
570
570
|
setOpen
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.native.js","names":[],"sources":["cjs/Popover.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Popover_exports = {};\n__export(Popover_exports, {\n\tPopover: () => Popover,\n\tPopoverAnchor: () => PopoverAnchor,\n\tPopoverArrow: () => PopoverArrow,\n\tPopoverClose: () => PopoverClose,\n\tPopoverContent: () => PopoverContent,\n\tPopoverContext: () => PopoverContext,\n\tPopoverContextProvider: () => PopoverContextProvider,\n\tPopoverTrigger: () => PopoverTrigger,\n\tPopoverTriggerContext: () => PopoverTriggerContext,\n\tPopoverZIndexContext: () => PopoverZIndexContext,\n\tcloseLastOpenedPopover: () => closeLastOpenedPopover,\n\tcloseOpenPopovers: () => closeOpenPopovers,\n\thasOpenPopovers: () => hasOpenPopovers,\n\tusePopoverContext: () => usePopoverContext,\n\tusePopoverOpen: () => usePopoverOpen,\n\tusePopoverTriggerContext: () => usePopoverTriggerContext,\n\tusePopoverTriggerSetup: () => usePopoverTriggerSetup\n});\nmodule.exports = __toCommonJS(Popover_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nrequire(\"@tamagui/polyfill-dev\");\nvar import_adapt = require(\"@tamagui/adapt\");\nvar import_animate = require(\"@tamagui/animate\");\nvar import_animate_presence = require(\"@tamagui/animate-presence\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_dismissable = require(\"@tamagui/dismissable\");\nvar import_floating = require(\"@tamagui/floating\");\nvar import_focus_scope = require(\"@tamagui/focus-scope\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_popper = require(\"@tamagui/popper\");\nvar import_portal = require(\"@tamagui/portal\");\nrequire(\"@tamagui/remove-scroll\");\nvar import_scroll_view = require(\"@tamagui/scroll-view\");\nvar import_stacks = require(\"@tamagui/stacks\");\nvar import_use_controllable_state = require(\"@tamagui/use-controllable-state\");\nvar React = __toESM(require(\"react\"), 1);\nvar import_useFloatingContext = require(\"./useFloatingContext\");\nvar needsRepropagation = (0, import_portal.needsPortalRepropagation)();\nvar openPopovers = /* @__PURE__ */ new Set();\nvar hasOpenPopovers = function() {\n\treturn openPopovers.size > 0;\n};\nvar closeOpenPopovers = function() {\n\tif (openPopovers.size === 0) return false;\n\topenPopovers.forEach(function(setOpen) {\n\t\treturn setOpen(false);\n\t});\n\treturn true;\n};\nvar closeLastOpenedPopover = function() {\n\tif (openPopovers.size === 0) return false;\n\tvar last = Array.from(openPopovers).pop();\n\tif (last) {\n\t\tlast(false);\n\t\treturn true;\n\t}\n\treturn false;\n};\nvar PopoverContext = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"Popover__\"\n);\nvar PopoverZIndexContext = /* @__PURE__ */ React.createContext(void 0);\nvar PopoverTriggerContext = (0, import_core.createStyledContext)({}, \"PopoverTrigger__\");\nvar usePopoverContext = PopoverContext.useStyledContext;\nvar usePopoverTriggerContext = PopoverTriggerContext.useStyledContext;\nfunction usePopoverOpen(scope) {\n\treturn usePopoverContext(scope).open;\n}\nfunction usePopoverTriggerSetup(open) {\n\tvar triggerStateSettersRef = React.useRef(/* @__PURE__ */ new Map());\n\tvar activeTriggerIdRef = React.useRef(null);\n\tvar setActiveTrigger = (0, import_core.useEvent)(function(id) {\n\t\tvar prevId = activeTriggerIdRef.current;\n\t\tif (prevId === id) return;\n\t\tif (prevId) {\n\t\t\tvar _triggerStateSettersRef_current_get;\n\t\t\t(_triggerStateSettersRef_current_get = triggerStateSettersRef.current.get(prevId)) === null || _triggerStateSettersRef_current_get === void 0 || _triggerStateSettersRef_current_get(false);\n\t\t}\n\t\tactiveTriggerIdRef.current = id;\n\t\tif (id && open) {\n\t\t\tvar _triggerStateSettersRef_current_get1;\n\t\t\t(_triggerStateSettersRef_current_get1 = triggerStateSettersRef.current.get(id)) === null || _triggerStateSettersRef_current_get1 === void 0 || _triggerStateSettersRef_current_get1(true);\n\t\t}\n\t});\n\tvar registerTrigger = (0, import_core.useEvent)(function(id, setOpenState) {\n\t\ttriggerStateSettersRef.current.set(id, setOpenState);\n\t\tsetOpenState(activeTriggerIdRef.current === id && open);\n\t});\n\tvar unregisterTrigger = (0, import_core.useEvent)(function(id) {\n\t\ttriggerStateSettersRef.current.delete(id);\n\t\tif (activeTriggerIdRef.current === id) activeTriggerIdRef.current = null;\n\t});\n\tReact.useEffect(function() {\n\t\tif (!open) {\n\t\t\tsetActiveTrigger(null);\n\t\t\treturn;\n\t\t}\n\t\tvar activeId = activeTriggerIdRef.current;\n\t\tif (activeId) {\n\t\t\tvar _triggerStateSettersRef_current_get;\n\t\t\t(_triggerStateSettersRef_current_get = triggerStateSettersRef.current.get(activeId)) === null || _triggerStateSettersRef_current_get === void 0 || _triggerStateSettersRef_current_get(true);\n\t\t}\n\t}, [open, setActiveTrigger]);\n\treturn {\n\t\tsetActiveTrigger,\n\t\tregisterTrigger,\n\t\tunregisterTrigger\n\t};\n}\nvar PopoverContextProvider = /* @__PURE__ */ React.memo(function(param) {\n\tvar { scope, children, open, onOpenChange, onOpenToggle, triggerRef, id = \"\", contentId, hasCustomAnchor = false, onCustomAnchorAdd = voidFn, onCustomAnchorRemove = voidFn, anchorTo, adaptScope, breakpointActive, keepChildrenMounted, disableDismissable, hoverable, closeReasonRef } = param;\n\tvar [branches] = React.useState(function() {\n\t\treturn /* @__PURE__ */ new Set();\n\t});\n\tvar { setActiveTrigger, registerTrigger, unregisterTrigger } = usePopoverTriggerSetup(open);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContext.Provider, {\n\t\tscope,\n\t\tpopoverScope: scope,\n\t\tadaptScope,\n\t\tid,\n\t\tcontentId,\n\t\ttriggerRef,\n\t\topen,\n\t\tonOpenChange,\n\t\tonOpenToggle,\n\t\thasCustomAnchor,\n\t\tonCustomAnchorAdd,\n\t\tonCustomAnchorRemove,\n\t\tanchorTo,\n\t\tbranches,\n\t\tbreakpointActive,\n\t\tkeepChildrenMounted,\n\t\tdisableDismissable,\n\t\thoverable,\n\t\tcloseReasonRef,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverTriggerContext.Provider, {\n\t\t\tscope,\n\t\t\ttriggerRef,\n\t\t\thasCustomAnchor,\n\t\t\tanchorTo,\n\t\t\tbranches,\n\t\t\tonOpenToggle,\n\t\t\tsetActiveTrigger,\n\t\t\tregisterTrigger,\n\t\t\tunregisterTrigger,\n\t\t\tchildren\n\t\t})\n\t});\n});\nvar voidFn = function() {};\nvar PopoverAnchor = /* @__PURE__ */ React.memo((0, import_core.createRefComponent)(function PopoverAnchor2(props, forwardedRef) {\n\tvar { scope, ...rest } = props;\n\tvar { onCustomAnchorAdd, onCustomAnchorRemove } = usePopoverContext(scope) || {};\n\tReact.useEffect(function() {\n\t\tonCustomAnchorAdd();\n\t\treturn function() {\n\t\t\treturn onCustomAnchorRemove();\n\t\t};\n\t}, [onCustomAnchorAdd, onCustomAnchorRemove]);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperAnchor, {\n\t\tscope,\n\t\t...rest,\n\t\tref: forwardedRef\n\t});\n}));\nvar PopoverTrigger = /* @__PURE__ */ React.memo((0, import_core.createRefComponent)(function PopoverTrigger2(props, forwardedRef) {\n\tvar { scope, disablePressTrigger, ...rest } = props;\n\tvar triggerContext = usePopoverTriggerContext(scope);\n\tvar popperContext = (0, import_popper.usePopperContextSlow)(scope);\n\tvar triggerId = React.useId();\n\tvar [open, setOpen] = React.useState(false);\n\tvar anchorTo = triggerContext.anchorTo;\n\tvar triggerElRef = React.useRef(null);\n\tvar composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, triggerElRef);\n\tvar { registerTrigger, unregisterTrigger } = triggerContext;\n\tReact.useEffect(function() {\n\t\tregisterTrigger(triggerId, setOpen);\n\t\treturn function() {\n\t\t\tunregisterTrigger(triggerId);\n\t\t};\n\t}, [\n\t\tregisterTrigger,\n\t\tunregisterTrigger,\n\t\ttriggerId\n\t]);\n\tif (!rest.children) return null;\n\tvar activateSelf = function() {\n\t\ttriggerContext.setActiveTrigger(triggerId);\n\t\tvar el = triggerElRef.current;\n\t\tif (el) triggerContext.triggerRef.current = el;\n\t};\n\tvar trigger = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t\"aria-expanded\": open,\n\t\t\"data-state\": getState(open),\n\t\t...rest,\n\t\tref: composedTriggerRef,\n\t\tonPress: (0, import_helpers.composeEventHandlers)(rest.onPress, function() {\n\t\t\tif (disablePressTrigger) return;\n\t\t\ttriggerContext.setActiveTrigger(open ? null : triggerId);\n\t\t\ttriggerContext.onOpenToggle();\n\t\t}),\n\t\tonMouseEnter: (0, import_helpers.composeEventHandlers)(rest.onMouseEnter, activateSelf),\n\t\tonPressIn: (0, import_helpers.composeEventHandlers)(rest.onPressIn, activateSelf),\n\t\tonFocus: (0, import_helpers.composeEventHandlers)(rest.onFocus, function(event) {\n\t\t\tvar _popperContext_getReferenceProps_onFocus, _popperContext_getReferenceProps, _popperContext_getReferenceProps_call;\n\t\t\tactivateSelf();\n\t\t\t(_popperContext_getReferenceProps = popperContext.getReferenceProps) === null || _popperContext_getReferenceProps === void 0 || (_popperContext_getReferenceProps_onFocus = (_popperContext_getReferenceProps_call = _popperContext_getReferenceProps.call(popperContext, { ref: triggerElRef })).onFocus) == null || _popperContext_getReferenceProps_onFocus.call(_popperContext_getReferenceProps_call, event);\n\t\t}),\n\t\tonBlur: (0, import_helpers.composeEventHandlers)(rest.onBlur, function(event) {\n\t\t\tvar _popperContext_getReferenceProps_onBlur, _popperContext_getReferenceProps, _popperContext_getReferenceProps_call;\n\t\t\t(_popperContext_getReferenceProps = popperContext.getReferenceProps) === null || _popperContext_getReferenceProps === void 0 || (_popperContext_getReferenceProps_onBlur = (_popperContext_getReferenceProps_call = _popperContext_getReferenceProps.call(popperContext, { ref: triggerElRef })).onBlur) == null || _popperContext_getReferenceProps_onBlur.call(_popperContext_getReferenceProps_call, event);\n\t\t})\n\t});\n\tvar virtualRef = React.useMemo(function() {\n\t\tif (!anchorTo) return null;\n\t\treturn { current: {\n\t\t\tgetBoundingClientRect: function() {\n\t\t\t\treturn import_constants.isWeb ? DOMRect.fromRect(anchorTo) : anchorTo;\n\t\t\t},\n\t\t\t...!import_constants.isWeb && {\n\t\t\t\tmeasure: function(c) {\n\t\t\t\t\treturn c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);\n\t\t\t\t},\n\t\t\t\tmeasureInWindow: function(c) {\n\t\t\t\t\treturn c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);\n\t\t\t\t}\n\t\t\t}\n\t\t} };\n\t}, [\n\t\ttriggerContext.anchorTo,\n\t\tanchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x,\n\t\tanchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y,\n\t\tanchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height,\n\t\tanchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width\n\t]);\n\tvar wrappedTrigger = import_constants.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dismissable.DismissableBranch, {\n\t\tbranches: triggerContext.branches,\n\t\tchildren: trigger\n\t}) : trigger;\n\treturn triggerContext.hasCustomAnchor ? wrappedTrigger : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperAnchor, {\n\t\t...virtualRef && { virtualRef },\n\t\tscope,\n\t\tasChild: true,\n\t\tchildren: wrappedTrigger\n\t});\n}));\nvar PopoverContent = (0, import_core.createStyledHOC)(import_popper.PopperContentFrame, function PopoverContent2(props, forwardedRef) {\n\tvar { trapFocus, enableRemoveScroll = false, zIndex: zIndexProp, scope, forceMount, ...contentImplProps } = props;\n\tvar context = usePopoverContext(scope);\n\tvar adaptContext = (0, import_adapt.useAdaptContext)(context.adaptScope);\n\tvar zIndexFromContext = React.useContext(PopoverZIndexContext);\n\tvar zIndex = zIndexProp !== null && zIndexProp !== void 0 ? zIndexProp : zIndexFromContext;\n\tvar open = usePopoverOpen(scope);\n\tvar contentRef = React.useRef(null);\n\tvar composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef);\n\tvar isRightClickOutsideRef = React.useRef(false);\n\tvar [isFullyHidden, setIsFullyHidden] = React.useState(!open);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (open && isFullyHidden) setIsFullyHidden(false);\n\t}, [open, isFullyHidden]);\n\tif (!forceMount && !context.keepChildrenMounted) {\n\t\tif (context.breakpointActive) {\n\t\t\tif (!open && adaptContext.targetFullyHidden) return null;\n\t\t} else if (isFullyHidden && !open) return null;\n\t}\n\tvar _contentImplProps_pointerEvents;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPortal, {\n\t\tpassThrough: context.breakpointActive,\n\t\tcontext,\n\t\topen,\n\t\tvisuallyActive: open || !isFullyHidden,\n\t\tzIndex,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t\tpassThrough: context.breakpointActive,\n\t\t\tpointerEvents: open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : \"auto\" : \"none\",\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentImpl, {\n\t\t\t\t...contentImplProps,\n\t\t\t\tcontext,\n\t\t\t\topen,\n\t\t\t\tforceMount,\n\t\t\t\tenableRemoveScroll,\n\t\t\t\tref: composedRefs,\n\t\t\t\tsetIsFullyHidden,\n\t\t\t\tscope,\n\t\t\t\ttrapFocus: trapFocus !== null && trapFocus !== void 0 ? trapFocus : open,\n\t\t\t\tdisableOutsidePointerEvents: true,\n\t\t\t\tonCloseAutoFocus: props.onCloseAutoFocus === false ? void 0 : (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {\n\t\t\t\t\tvar _context_triggerRef_current;\n\t\t\t\t\tif (event.isCanceled) return;\n\t\t\t\t\tevent.cancel();\n\t\t\t\t\tif (!isRightClickOutsideRef.current) (_context_triggerRef_current = context.triggerRef.current) === null || _context_triggerRef_current === void 0 || _context_triggerRef_current.focus();\n\t\t\t\t}),\n\t\t\t\tonPointerDownOutside: (0, import_helpers.composeEventHandlers)(props.onPointerDownOutside, function(event) {\n\t\t\t\t\tvar originalEvent = event.event;\n\t\t\t\t\tif (!originalEvent) return;\n\t\t\t\t\tvar ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n\t\t\t\t\tisRightClickOutsideRef.current = originalEvent.button === 2 || ctrlLeftClick;\n\t\t\t\t}, { checkDefaultPrevented: false }),\n\t\t\t\tonFocusOutside: (0, import_helpers.composeEventHandlers)(props.onFocusOutside, function(event) {\n\t\t\t\t\tif (trapFocus !== null && trapFocus !== void 0 ? trapFocus : open) event.cancel();\n\t\t\t\t}, { checkDefaultPrevented: false })\n\t\t\t})\n\t\t})\n\t});\n}, { staticConfig: { inlineProps: /* @__PURE__ */ new Set([\n\t...import_popper.PopperContentFrame.staticConfig.inlineProps || [],\n\t\"zIndex\",\n\t\"opacity\",\n\t\"y\"\n]) } });\nvar useParentContexts = function(scope) {\n\tvar context = usePopoverContext(scope);\n\tvar triggerContext = usePopoverTriggerContext(scope);\n\treturn {\n\t\tpopperContext: (0, import_popper.usePopperContext)(scope),\n\t\tadaptContext: (0, import_adapt.useAdaptContext)(context.adaptScope),\n\t\tcontext,\n\t\ttriggerContext\n\t};\n};\nfunction RepropagateParentContexts(param) {\n\tvar { adaptContext, children, context, triggerContext, popperContext } = param;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperProvider, {\n\t\tscope: context.popoverScope,\n\t\t...popperContext,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContext.Provider, {\n\t\t\tscope: context.popoverScope,\n\t\t\t...context,\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverTriggerContext.Provider, {\n\t\t\t\tscope: context.popoverScope,\n\t\t\t\t...triggerContext,\n\t\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.ProvideAdaptContext, {\n\t\t\t\t\t...adaptContext,\n\t\t\t\t\tchildren\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t});\n}\nvar PortalAdaptSafe = function(param) {\n\t\"use no memo\";\n\tvar { children, context } = param;\n\tif (needsRepropagation) {\n\t\tvar parentContexts = useParentContexts(context.popoverScope);\n\t\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptPortalContents, {\n\t\t\tscope: context.adaptScope,\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RepropagateParentContexts, {\n\t\t\t\t...parentContexts,\n\t\t\t\tchildren\n\t\t\t})\n\t\t});\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptPortalContents, {\n\t\tscope: context.adaptScope,\n\t\tchildren\n\t});\n};\nfunction PopoverPortal(param) {\n\t\"use no memo\";\n\tvar { context, open, visuallyActive, zIndex, passThrough, children, onPress } = param;\n\tvar content = children;\n\tif (needsRepropagation) {\n\t\tvar parentContexts = useParentContexts(context.popoverScope);\n\t\tcontent = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RepropagateParentContexts, {\n\t\t\t...parentContexts,\n\t\t\tchildren: content\n\t\t});\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_portal.Portal, {\n\t\tpassThrough,\n\t\tstackZIndex: true,\n\t\tzIndex,\n\t\thidden: !visuallyActive,\n\t\tchildren: [!!open && !context.breakpointActive && !context.hoverable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.YStack, {\n\t\t\tposition: \"absolute\",\n\t\t\tinset: 0,\n\t\t\tonPress: (0, import_helpers.composeEventHandlers)(onPress, context.onOpenToggle)\n\t\t}), content]\n\t});\n}\nvar PopoverContentImpl = (0, import_core.createRefComponent)(function PopoverContentImpl2(props, forwardedRef) {\n\tvar { trapFocus, scope, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, disableFocusScope, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, children, enableRemoveScroll, freezeContentsWhenHidden, setIsFullyHidden, lazyMount, forceUnmount, forceMount, context, open, alwaysDisable, ...contentProps } = props;\n\tvar { disableDismissable } = context;\n\tvar keepChildrenMounted = context.keepChildrenMounted || forceMount;\n\tvar handleExitComplete = React.useCallback(function() {\n\t\tsetIsFullyHidden === null || setIsFullyHidden === void 0 || setIsFullyHidden(true);\n\t}, [setIsFullyHidden]);\n\tvar contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.ResetPresence, {\n\t\tdisable: context.breakpointActive,\n\t\tchildren\n\t});\n\tReact.useCallback(function(details) {\n\t\tif (context.closeReasonRef) context.closeReasonRef.current = details.reason === \"escape-key\" ? \"escape-key\" : \"dismiss\";\n\t\tcontext.onOpenChange(false, \"press\");\n\t}, [context]);\n\tif (!context.breakpointActive) {}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate.Animate, {\n\t\ttype: \"presence\",\n\t\tpresent: Boolean(open),\n\t\tkeepChildrenMounted: Boolean(keepChildrenMounted),\n\t\tonExitComplete: handleExitComplete,\n\t\tlazyMount,\n\t\tpassThrough: context.breakpointActive,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperContent, {\n\t\t\tscope,\n\t\t\t\"data-state\": getState(open),\n\t\t\tid: context.contentId,\n\t\t\tref: forwardedRef,\n\t\t\tpassThrough: context.breakpointActive,\n\t\t\t...contentProps,\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalAdaptSafe, {\n\t\t\t\tcontext,\n\t\t\t\tchildren: contents\n\t\t\t})\n\t\t}, context.contentId)\n\t});\n});\nvar PopoverClose = (0, import_core.createRefComponent)(function PopoverClose2(props, forwardedRef) {\n\tvar { scope, className, ...rest } = props;\n\tvar context = usePopoverContext(scope);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.YStack, {\n\t\t...rest,\n\t\tref: forwardedRef,\n\t\tclassName: `is_PopoverClose ${className || \"\"}`.trim(),\n\t\tonPress: (0, import_helpers.composeEventHandlers)(props.onPress, function() {\n\t\t\tvar _context_onOpenChange;\n\t\t\treturn context === null || context === void 0 ? void 0 : (_context_onOpenChange = context.onOpenChange) === null || _context_onOpenChange === void 0 ? void 0 : _context_onOpenChange.call(context, false, \"press\");\n\t\t})\n\t});\n});\nvar PopoverArrow = (0, import_core.createStyledHOC)(import_popper.PopperArrowFrame, function PopoverArrow2(props, forwardedRef) {\n\tvar { scope, className, ...rest } = props;\n\tvar context = usePopoverContext(scope);\n\tif ((0, import_adapt.useAdaptIsActive)(context.adaptScope)) return null;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperArrow, {\n\t\tscope,\n\t\tclassName: `is_PopoverArrow ${className || \"\"}`.trim(),\n\t\t...rest,\n\t\tref: forwardedRef\n\t});\n});\nvar PopoverScrollView = (0, import_core.createRefComponent)(function(param, ref) {\n\tvar { scope, ...props } = param;\n\tvar context = usePopoverContext(scope);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_scroll_view.ScrollView, {\n\t\tref,\n\t\tpointerEvents: context.breakpointActive ? \"none\" : void 0,\n\t\tscrollEnabled: !context.breakpointActive,\n\t\tpassThrough: context.breakpointActive,\n\t\t...props\n\t});\n});\nvar DEFAULT_SCOPE = \"\";\nvar Popover = (0, import_helpers.withStaticProperties)((0, import_core.createRefComponent)(function Popover2(param, ref) {\n\tvar { scope = DEFAULT_SCOPE, ...props } = param;\n\tvar id = React.useId();\n\tvar adaptScope = `PopoverAdapt${scope}`;\n\tvar { open: openProp, defaultOpen, onOpenChange } = props;\n\tvar viaRef = React.useRef(void 0);\n\tvar closeReasonRef = React.useRef(void 0);\n\tvar [open, setOpen] = (0, import_use_controllable_state.useControllableState)({\n\t\tprop: openProp,\n\t\tdefaultProp: defaultOpen || false,\n\t\tonChange: function(val) {\n\t\t\tonOpenChange === null || onOpenChange === void 0 || onOpenChange(val, viaRef.current);\n\t\t}\n\t});\n\tvar handleOpenChange = (0, import_core.useEvent)(function(val, via) {\n\t\tviaRef.current = via;\n\t\tsetOpen(val);\n\t});\n\tReact.useEffect(function() {\n\t\tif (!open) return;\n\t\topenPopovers.add(setOpen);\n\t\treturn function() {\n\t\t\topenPopovers.delete(setOpen);\n\t\t};\n\t}, [open, setOpen]);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptParent, {\n\t\tscope: adaptScope,\n\t\tadaptChildren: props.children,\n\t\topen,\n\t\tonOpenChange: setOpen,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverInner, {\n\t\t\tadaptScope,\n\t\t\tref,\n\t\t\tid,\n\t\t\tscope,\n\t\t\topen,\n\t\t\tsetOpen,\n\t\t\thandleOpenChange,\n\t\t\tcloseReasonRef,\n\t\t\t...props\n\t\t})\n\t});\n}), {\n\tAnchor: PopoverAnchor,\n\tArrow: PopoverArrow,\n\tTrigger: PopoverTrigger,\n\tContent: PopoverContent,\n\tClose: PopoverClose,\n\tAdapt: import_adapt.Adapt,\n\tScrollView: PopoverScrollView,\n\tFocusScope: import_focus_scope.FocusScopeController\n});\nvar PopoverInner = (0, import_core.createRefComponent)(function PopoverInner2(props, forwardedRef) {\n\tvar { children, open: _openProp, defaultOpen: _defaultOpen, onOpenChange: _onOpenChange, scope = DEFAULT_SCOPE, keepChildrenMounted: keepChildrenMountedProp, hoverable, disableFocus = !hoverable, disableDismissable, zIndex, id, adaptScope, open, setOpen, handleOpenChange, closeReasonRef, ...restProps } = props;\n\tvar triggerRef = React.useRef(null);\n\tvar [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n\tvar [keepChildrenMounted] = (0, import_use_controllable_state.useControllableState)({\n\t\tprop: keepChildrenMountedProp,\n\t\tdefaultProp: false,\n\t\ttransition: keepChildrenMountedProp === \"lazy\"\n\t});\n\tvar isAdapted = (0, import_adapt.useAdaptIsActive)(adaptScope);\n\tvar floatingContext = (0, import_useFloatingContext.useFloatingContext)({\n\t\topen,\n\t\tsetOpen: handleOpenChange,\n\t\tcloseReasonRef,\n\t\tdisable: isAdapted,\n\t\thoverable,\n\t\tdisableFocus\n\t});\n\tvar [anchorTo, setAnchorToRaw] = React.useState();\n\tvar setAnchorTo = (0, import_core.useCreateShallowSetState)(setAnchorToRaw);\n\tReact.useImperativeHandle(forwardedRef, function() {\n\t\treturn {\n\t\t\tanchorTo: setAnchorTo,\n\t\t\ttoggle: function() {\n\t\t\t\treturn setOpen(function(prev) {\n\t\t\t\t\treturn !prev;\n\t\t\t\t});\n\t\t\t},\n\t\t\topen: function() {\n\t\t\t\treturn setOpen(true);\n\t\t\t},\n\t\t\tclose: function() {\n\t\t\t\treturn setOpen(false);\n\t\t\t},\n\t\t\tsetOpen\n\t\t};\n\t});\n\tvar contentId = React.useId();\n\tvar onOpenToggle = (0, import_core.useEvent)(function() {\n\t\tif (open && isAdapted) return;\n\t\tcloseReasonRef.current = open ? \"reference-press\" : void 0;\n\t\tsetOpen(!open);\n\t});\n\tvar onCustomAnchorAdd = React.useCallback(function() {\n\t\treturn setHasCustomAnchor(true);\n\t}, []);\n\tvar onCustomAnchorRemove = React.useCallback(function() {\n\t\treturn setHasCustomAnchor(false);\n\t}, []);\n\tvar contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.Popper, {\n\t\topen,\n\t\tpassThrough: isAdapted,\n\t\tscope,\n\t\tstayInFrame: true,\n\t\t...restProps,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContextProvider, {\n\t\t\tscope,\n\t\t\topen,\n\t\t\tonOpenChange: handleOpenChange,\n\t\t\tonOpenToggle,\n\t\t\ttriggerRef,\n\t\t\tid,\n\t\t\tcontentId,\n\t\t\thasCustomAnchor,\n\t\t\tonCustomAnchorAdd,\n\t\t\tonCustomAnchorRemove,\n\t\t\tanchorTo,\n\t\t\tadaptScope,\n\t\t\tbreakpointActive: isAdapted,\n\t\t\tkeepChildrenMounted,\n\t\t\tdisableDismissable,\n\t\t\thoverable,\n\t\t\tcloseReasonRef,\n\t\t\tchildren\n\t\t})\n\t});\n\tvar result = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: import_constants.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_floating.FloatingOverrideContext.Provider, {\n\t\tvalue: floatingContext,\n\t\tchildren: contents\n\t}) : contents });\n\tif (zIndex !== void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverZIndexContext.Provider, {\n\t\tvalue: zIndex,\n\t\tchildren: result\n\t});\n\treturn result;\n});\nfunction getState(open) {\n\treturn open ? \"open\" : \"closed\";\n}\n//# sourceMappingURL=Popover.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,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SAAQ,CAAE,WAAW;EACvD,IAAI,QAAQ,WAAW;EACvB,eAAe,UAAU,OAAO,oBAAoB,KAAK;EACzD,QAAQ,CAAC,IAAI;CACd,CAAC;CACD,IAAI,oBAAoB,MAAM,YAAY,WAAW;EACpD,OAAO,mBAAmB,IAAI;CAC/B,GAAG,CAAC,CAAC;CACL,IAAI,uBAAuB,MAAM,YAAY,WAAW;EACvD,OAAO,mBAAmB,KAAK;CAChC,GAAG,CAAC,CAAC;CACL,IAAI,WAA2B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,cAAc,QAAQ;EAChF;EACA,aAAa;EACb;EACA,aAAa;EACb,GAAG;EACH,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,wBAAwB;GAC7E;GACA;GACA,cAAc;GACd;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,kBAAkB;GAClB;GACA;GACA;GACA;GACA;EACD,CAAC;CACF,CAAC;CACD,IAAI,SAAyB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,mBAAmB,UAAU,EAAE,UAAU,iBAAiB,QAAwB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,gBAAgB,wBAAwB,UAAU;EACxN,OAAO;EACP,UAAU;CACX,CAAC,IAAI,SAAS,CAAC;CACf,IAAI,WAAW,KAAK,GAAG,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,qBAAqB,UAAU;EACxG,OAAO;EACP,UAAU;CACX,CAAC;CACD,OAAO;AACR,CAAC;AACD,SAAS,SAAS,MAAM;CACvB,OAAO,OAAO,SAAS;AACxB"}
|
|
1
|
+
{"version":3,"file":"Popover.native.js","names":[],"sources":["cjs/Popover.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Popover_exports = {};\n__export(Popover_exports, {\n\tPopover: () => Popover,\n\tPopoverAnchor: () => PopoverAnchor,\n\tPopoverArrow: () => PopoverArrow,\n\tPopoverClose: () => PopoverClose,\n\tPopoverContent: () => PopoverContent,\n\tPopoverContext: () => PopoverContext,\n\tPopoverContextProvider: () => PopoverContextProvider,\n\tPopoverTrigger: () => PopoverTrigger,\n\tPopoverTriggerContext: () => PopoverTriggerContext,\n\tPopoverZIndexContext: () => PopoverZIndexContext,\n\tcloseLastOpenedPopover: () => closeLastOpenedPopover,\n\tcloseOpenPopovers: () => closeOpenPopovers,\n\thasOpenPopovers: () => hasOpenPopovers,\n\tusePopoverContext: () => usePopoverContext,\n\tusePopoverOpen: () => usePopoverOpen,\n\tusePopoverTriggerContext: () => usePopoverTriggerContext,\n\tusePopoverTriggerSetup: () => usePopoverTriggerSetup\n});\nmodule.exports = __toCommonJS(Popover_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nrequire(\"@tamagui/polyfill-dev\");\nvar import_adapt = require(\"@tamagui/adapt\");\nvar import_animate = require(\"@tamagui/animate\");\nvar import_animate_presence = require(\"@tamagui/animate-presence\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_dismissable = require(\"@tamagui/dismissable\");\nvar import_floating = require(\"@tamagui/floating\");\nvar import_focus_scope = require(\"@tamagui/focus-scope\");\nvar import_helpers = require(\"@tamagui/helpers\");\nvar import_popper = require(\"@tamagui/popper\");\nvar import_portal = require(\"@tamagui/portal\");\nrequire(\"@tamagui/remove-scroll\");\nvar import_scroll_view = require(\"@tamagui/scroll-view\");\nvar import_stacks = require(\"@tamagui/stacks\");\nvar import_use_controllable_state = require(\"@tamagui/use-controllable-state\");\nvar React = __toESM(require(\"react\"), 1);\nvar import_useFloatingContext = require(\"./useFloatingContext\");\nvar needsRepropagation = (0, import_portal.needsPortalRepropagation)();\nvar openPopovers = /* @__PURE__ */ new Set();\nvar hasOpenPopovers = function hasOpenPopovers2() {\n\treturn openPopovers.size > 0;\n};\nvar closeOpenPopovers = function closeOpenPopovers2() {\n\tif (openPopovers.size === 0) return false;\n\topenPopovers.forEach(function(setOpen) {\n\t\treturn setOpen(false);\n\t});\n\treturn true;\n};\nvar closeLastOpenedPopover = function closeLastOpenedPopover2() {\n\tif (openPopovers.size === 0) return false;\n\tvar last = Array.from(openPopovers).pop();\n\tif (last) {\n\t\tlast(false);\n\t\treturn true;\n\t}\n\treturn false;\n};\nvar PopoverContext = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"Popover__\"\n);\nvar PopoverZIndexContext = /* @__PURE__ */ React.createContext(void 0);\nvar PopoverTriggerContext = (0, import_core.createStyledContext)({}, \"PopoverTrigger__\");\nvar usePopoverContext = PopoverContext.useStyledContext;\nvar usePopoverTriggerContext = PopoverTriggerContext.useStyledContext;\nfunction usePopoverOpen(scope) {\n\treturn usePopoverContext(scope).open;\n}\nfunction usePopoverTriggerSetup(open) {\n\tvar triggerStateSettersRef = React.useRef(/* @__PURE__ */ new Map());\n\tvar activeTriggerIdRef = React.useRef(null);\n\tvar setActiveTrigger = (0, import_core.useEvent)(function(id) {\n\t\tvar prevId = activeTriggerIdRef.current;\n\t\tif (prevId === id) return;\n\t\tif (prevId) {\n\t\t\tvar _triggerStateSettersRef_current_get;\n\t\t\t(_triggerStateSettersRef_current_get = triggerStateSettersRef.current.get(prevId)) === null || _triggerStateSettersRef_current_get === void 0 || _triggerStateSettersRef_current_get(false);\n\t\t}\n\t\tactiveTriggerIdRef.current = id;\n\t\tif (id && open) {\n\t\t\tvar _triggerStateSettersRef_current_get1;\n\t\t\t(_triggerStateSettersRef_current_get1 = triggerStateSettersRef.current.get(id)) === null || _triggerStateSettersRef_current_get1 === void 0 || _triggerStateSettersRef_current_get1(true);\n\t\t}\n\t});\n\tvar registerTrigger = (0, import_core.useEvent)(function(id, setOpenState) {\n\t\ttriggerStateSettersRef.current.set(id, setOpenState);\n\t\tsetOpenState(activeTriggerIdRef.current === id && open);\n\t});\n\tvar unregisterTrigger = (0, import_core.useEvent)(function(id) {\n\t\ttriggerStateSettersRef.current.delete(id);\n\t\tif (activeTriggerIdRef.current === id) activeTriggerIdRef.current = null;\n\t});\n\tReact.useEffect(function() {\n\t\tif (!open) {\n\t\t\tsetActiveTrigger(null);\n\t\t\treturn;\n\t\t}\n\t\tvar activeId = activeTriggerIdRef.current;\n\t\tif (activeId) {\n\t\t\tvar _triggerStateSettersRef_current_get;\n\t\t\t(_triggerStateSettersRef_current_get = triggerStateSettersRef.current.get(activeId)) === null || _triggerStateSettersRef_current_get === void 0 || _triggerStateSettersRef_current_get(true);\n\t\t}\n\t}, [open, setActiveTrigger]);\n\treturn {\n\t\tsetActiveTrigger,\n\t\tregisterTrigger,\n\t\tunregisterTrigger\n\t};\n}\nvar PopoverContextProvider = /* @__PURE__ */ React.memo(function(param) {\n\tvar { scope, children, open, onOpenChange, onOpenToggle, triggerRef, id = \"\", contentId, hasCustomAnchor = false, onCustomAnchorAdd = voidFn, onCustomAnchorRemove = voidFn, anchorTo, adaptScope, breakpointActive, keepChildrenMounted, disableDismissable, hoverable, closeReasonRef } = param;\n\tvar [branches] = React.useState(function() {\n\t\treturn /* @__PURE__ */ new Set();\n\t});\n\tvar { setActiveTrigger, registerTrigger, unregisterTrigger } = usePopoverTriggerSetup(open);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContext.Provider, {\n\t\tscope,\n\t\tpopoverScope: scope,\n\t\tadaptScope,\n\t\tid,\n\t\tcontentId,\n\t\ttriggerRef,\n\t\topen,\n\t\tonOpenChange,\n\t\tonOpenToggle,\n\t\thasCustomAnchor,\n\t\tonCustomAnchorAdd,\n\t\tonCustomAnchorRemove,\n\t\tanchorTo,\n\t\tbranches,\n\t\tbreakpointActive,\n\t\tkeepChildrenMounted,\n\t\tdisableDismissable,\n\t\thoverable,\n\t\tcloseReasonRef,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverTriggerContext.Provider, {\n\t\t\tscope,\n\t\t\ttriggerRef,\n\t\t\thasCustomAnchor,\n\t\t\tanchorTo,\n\t\t\tbranches,\n\t\t\tonOpenToggle,\n\t\t\tsetActiveTrigger,\n\t\t\tregisterTrigger,\n\t\t\tunregisterTrigger,\n\t\t\tchildren\n\t\t})\n\t});\n});\nvar voidFn = function voidFn2() {};\nvar PopoverAnchor = /* @__PURE__ */ React.memo((0, import_core.createRefComponent)(function PopoverAnchor2(props, forwardedRef) {\n\tvar { scope, ...rest } = props;\n\tvar { onCustomAnchorAdd, onCustomAnchorRemove } = usePopoverContext(scope) || {};\n\tReact.useEffect(function() {\n\t\tonCustomAnchorAdd();\n\t\treturn function() {\n\t\t\treturn onCustomAnchorRemove();\n\t\t};\n\t}, [onCustomAnchorAdd, onCustomAnchorRemove]);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperAnchor, {\n\t\tscope,\n\t\t...rest,\n\t\tref: forwardedRef\n\t});\n}));\nvar PopoverTrigger = /* @__PURE__ */ React.memo((0, import_core.createRefComponent)(function PopoverTrigger2(props, forwardedRef) {\n\tvar { scope, disablePressTrigger, ...rest } = props;\n\tvar triggerContext = usePopoverTriggerContext(scope);\n\tvar popperContext = (0, import_popper.usePopperContextSlow)(scope);\n\tvar triggerId = React.useId();\n\tvar [open, setOpen] = React.useState(false);\n\tvar anchorTo = triggerContext.anchorTo;\n\tvar triggerElRef = React.useRef(null);\n\tvar composedTriggerRef = (0, import_compose_refs.useComposedRefs)(forwardedRef, triggerElRef);\n\tvar { registerTrigger, unregisterTrigger } = triggerContext;\n\tReact.useEffect(function() {\n\t\tregisterTrigger(triggerId, setOpen);\n\t\treturn function() {\n\t\t\tunregisterTrigger(triggerId);\n\t\t};\n\t}, [\n\t\tregisterTrigger,\n\t\tunregisterTrigger,\n\t\ttriggerId\n\t]);\n\tif (!rest.children) return null;\n\tvar activateSelf = function activateSelf2() {\n\t\ttriggerContext.setActiveTrigger(triggerId);\n\t\tvar el = triggerElRef.current;\n\t\tif (el) triggerContext.triggerRef.current = el;\n\t};\n\tvar trigger = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t\"aria-expanded\": open,\n\t\t\"data-state\": getState(open),\n\t\t...rest,\n\t\tref: composedTriggerRef,\n\t\tonPress: (0, import_helpers.composeEventHandlers)(rest.onPress, function() {\n\t\t\tif (disablePressTrigger) return;\n\t\t\ttriggerContext.setActiveTrigger(open ? null : triggerId);\n\t\t\ttriggerContext.onOpenToggle();\n\t\t}),\n\t\tonMouseEnter: (0, import_helpers.composeEventHandlers)(rest.onMouseEnter, activateSelf),\n\t\tonPressIn: (0, import_helpers.composeEventHandlers)(rest.onPressIn, activateSelf),\n\t\tonFocus: (0, import_helpers.composeEventHandlers)(rest.onFocus, function(event) {\n\t\t\tvar _popperContext_getReferenceProps_onFocus, _popperContext_getReferenceProps, _popperContext_getReferenceProps_call;\n\t\t\tactivateSelf();\n\t\t\t(_popperContext_getReferenceProps = popperContext.getReferenceProps) === null || _popperContext_getReferenceProps === void 0 || (_popperContext_getReferenceProps_onFocus = (_popperContext_getReferenceProps_call = _popperContext_getReferenceProps.call(popperContext, { ref: triggerElRef })).onFocus) == null || _popperContext_getReferenceProps_onFocus.call(_popperContext_getReferenceProps_call, event);\n\t\t}),\n\t\tonBlur: (0, import_helpers.composeEventHandlers)(rest.onBlur, function(event) {\n\t\t\tvar _popperContext_getReferenceProps_onBlur, _popperContext_getReferenceProps, _popperContext_getReferenceProps_call;\n\t\t\t(_popperContext_getReferenceProps = popperContext.getReferenceProps) === null || _popperContext_getReferenceProps === void 0 || (_popperContext_getReferenceProps_onBlur = (_popperContext_getReferenceProps_call = _popperContext_getReferenceProps.call(popperContext, { ref: triggerElRef })).onBlur) == null || _popperContext_getReferenceProps_onBlur.call(_popperContext_getReferenceProps_call, event);\n\t\t})\n\t});\n\tvar virtualRef = React.useMemo(function() {\n\t\tif (!anchorTo) return null;\n\t\treturn { current: {\n\t\t\tgetBoundingClientRect: function getBoundingClientRect() {\n\t\t\t\treturn import_constants.isWeb ? DOMRect.fromRect(anchorTo) : anchorTo;\n\t\t\t},\n\t\t\t...!import_constants.isWeb && {\n\t\t\t\tmeasure: function measure(c) {\n\t\t\t\t\treturn c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);\n\t\t\t\t},\n\t\t\t\tmeasureInWindow: function measureInWindow(c) {\n\t\t\t\t\treturn c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);\n\t\t\t\t}\n\t\t\t}\n\t\t} };\n\t}, [\n\t\ttriggerContext.anchorTo,\n\t\tanchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x,\n\t\tanchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y,\n\t\tanchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height,\n\t\tanchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width\n\t]);\n\tvar wrappedTrigger = import_constants.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_dismissable.DismissableBranch, {\n\t\tbranches: triggerContext.branches,\n\t\tchildren: trigger\n\t}) : trigger;\n\treturn triggerContext.hasCustomAnchor ? wrappedTrigger : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperAnchor, {\n\t\t...virtualRef && { virtualRef },\n\t\tscope,\n\t\tasChild: true,\n\t\tchildren: wrappedTrigger\n\t});\n}));\nvar PopoverContent = (0, import_core.createStyledHOC)(import_popper.PopperContentFrame, function PopoverContent2(props, forwardedRef) {\n\tvar _contentImplProps_pointerEvents;\n\tvar { trapFocus, enableRemoveScroll = false, zIndex: zIndexProp, scope, forceMount, ...contentImplProps } = props;\n\tvar context = usePopoverContext(scope);\n\tvar adaptContext = (0, import_adapt.useAdaptContext)(context.adaptScope);\n\tvar zIndexFromContext = React.useContext(PopoverZIndexContext);\n\tvar zIndex = zIndexProp !== null && zIndexProp !== void 0 ? zIndexProp : zIndexFromContext;\n\tvar open = usePopoverOpen(scope);\n\tvar contentRef = React.useRef(null);\n\tvar composedRefs = (0, import_compose_refs.useComposedRefs)(forwardedRef, contentRef);\n\tvar isRightClickOutsideRef = React.useRef(false);\n\tvar [isFullyHidden, setIsFullyHidden] = React.useState(!open);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (open && isFullyHidden) setIsFullyHidden(false);\n\t}, [open, isFullyHidden]);\n\tif (!forceMount && !context.keepChildrenMounted) {\n\t\tif (context.breakpointActive) {\n\t\t\tif (!open && adaptContext.targetFullyHidden) return null;\n\t\t} else if (isFullyHidden && !open) return null;\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPortal, {\n\t\tpassThrough: context.breakpointActive,\n\t\tcontext,\n\t\topen,\n\t\tvisuallyActive: open || !isFullyHidden,\n\t\tzIndex,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t\tpassThrough: context.breakpointActive,\n\t\t\tpointerEvents: open ? (_contentImplProps_pointerEvents = contentImplProps.pointerEvents) !== null && _contentImplProps_pointerEvents !== void 0 ? _contentImplProps_pointerEvents : \"auto\" : \"none\",\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContentImpl, {\n\t\t\t\t...contentImplProps,\n\t\t\t\tcontext,\n\t\t\t\topen,\n\t\t\t\tforceMount,\n\t\t\t\tenableRemoveScroll,\n\t\t\t\tref: composedRefs,\n\t\t\t\tsetIsFullyHidden,\n\t\t\t\tscope,\n\t\t\t\ttrapFocus: trapFocus !== null && trapFocus !== void 0 ? trapFocus : open,\n\t\t\t\tdisableOutsidePointerEvents: true,\n\t\t\t\tonCloseAutoFocus: props.onCloseAutoFocus === false ? void 0 : (0, import_helpers.composeEventHandlers)(props.onCloseAutoFocus, function(event) {\n\t\t\t\t\tvar _context_triggerRef_current;\n\t\t\t\t\tif (event.isCanceled) return;\n\t\t\t\t\tevent.cancel();\n\t\t\t\t\tif (!isRightClickOutsideRef.current) (_context_triggerRef_current = context.triggerRef.current) === null || _context_triggerRef_current === void 0 || _context_triggerRef_current.focus();\n\t\t\t\t}),\n\t\t\t\tonPointerDownOutside: (0, import_helpers.composeEventHandlers)(props.onPointerDownOutside, function(event) {\n\t\t\t\t\tvar originalEvent = event.event;\n\t\t\t\t\tif (!originalEvent) return;\n\t\t\t\t\tvar ctrlLeftClick = originalEvent.button === 0 && originalEvent.ctrlKey === true;\n\t\t\t\t\tisRightClickOutsideRef.current = originalEvent.button === 2 || ctrlLeftClick;\n\t\t\t\t}, { checkDefaultPrevented: false }),\n\t\t\t\tonFocusOutside: (0, import_helpers.composeEventHandlers)(props.onFocusOutside, function(event) {\n\t\t\t\t\tif (trapFocus !== null && trapFocus !== void 0 ? trapFocus : open) event.cancel();\n\t\t\t\t}, { checkDefaultPrevented: false })\n\t\t\t})\n\t\t})\n\t});\n}, { staticConfig: { inlineProps: /* @__PURE__ */ new Set([\n\t...import_popper.PopperContentFrame.staticConfig.inlineProps || [],\n\t\"zIndex\",\n\t\"opacity\",\n\t\"y\"\n]) } });\nvar useParentContexts = function useParentContexts2(scope) {\n\tvar context = usePopoverContext(scope);\n\tvar triggerContext = usePopoverTriggerContext(scope);\n\treturn {\n\t\tpopperContext: (0, import_popper.usePopperContext)(scope),\n\t\tadaptContext: (0, import_adapt.useAdaptContext)(context.adaptScope),\n\t\tcontext,\n\t\ttriggerContext\n\t};\n};\nfunction RepropagateParentContexts(param) {\n\tvar { adaptContext, children, context, triggerContext, popperContext } = param;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperProvider, {\n\t\tscope: context.popoverScope,\n\t\t...popperContext,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContext.Provider, {\n\t\t\tscope: context.popoverScope,\n\t\t\t...context,\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverTriggerContext.Provider, {\n\t\t\t\tscope: context.popoverScope,\n\t\t\t\t...triggerContext,\n\t\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.ProvideAdaptContext, {\n\t\t\t\t\t...adaptContext,\n\t\t\t\t\tchildren\n\t\t\t\t})\n\t\t\t})\n\t\t})\n\t});\n}\nvar PortalAdaptSafe = function PortalAdaptSafe2(param) {\n\t\"use no memo\";\n\tvar { children, context } = param;\n\tif (needsRepropagation) {\n\t\tvar parentContexts = useParentContexts(context.popoverScope);\n\t\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptPortalContents, {\n\t\t\tscope: context.adaptScope,\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RepropagateParentContexts, {\n\t\t\t\t...parentContexts,\n\t\t\t\tchildren\n\t\t\t})\n\t\t});\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptPortalContents, {\n\t\tscope: context.adaptScope,\n\t\tchildren\n\t});\n};\nfunction PopoverPortal(param) {\n\t\"use no memo\";\n\tvar { context, open, visuallyActive, zIndex, passThrough, children, onPress } = param;\n\tvar content = children;\n\tif (needsRepropagation) {\n\t\tvar parentContexts = useParentContexts(context.popoverScope);\n\t\tcontent = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RepropagateParentContexts, {\n\t\t\t...parentContexts,\n\t\t\tchildren: content\n\t\t});\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_portal.Portal, {\n\t\tpassThrough,\n\t\tstackZIndex: true,\n\t\tzIndex,\n\t\thidden: !visuallyActive,\n\t\tchildren: [!!open && !context.breakpointActive && !context.hoverable && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.YStack, {\n\t\t\tposition: \"absolute\",\n\t\t\tinset: 0,\n\t\t\tonPress: (0, import_helpers.composeEventHandlers)(onPress, context.onOpenToggle)\n\t\t}), content]\n\t});\n}\nvar PopoverContentImpl = (0, import_core.createRefComponent)(function PopoverContentImpl2(props, forwardedRef) {\n\tvar { trapFocus, scope, onOpenAutoFocus, onCloseAutoFocus, disableOutsidePointerEvents, disableFocusScope, onEscapeKeyDown, onPointerDownOutside, onFocusOutside, onInteractOutside, children, enableRemoveScroll, freezeContentsWhenHidden, setIsFullyHidden, lazyMount, forceUnmount, forceMount, context, open, alwaysDisable, ...contentProps } = props;\n\tvar { disableDismissable } = context;\n\tvar keepChildrenMounted = context.keepChildrenMounted || forceMount;\n\tvar handleExitComplete = React.useCallback(function() {\n\t\tsetIsFullyHidden === null || setIsFullyHidden === void 0 || setIsFullyHidden(true);\n\t}, [setIsFullyHidden]);\n\tvar contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate_presence.ResetPresence, {\n\t\tdisable: context.breakpointActive,\n\t\tchildren\n\t});\n\tReact.useCallback(function(details) {\n\t\tif (context.closeReasonRef) context.closeReasonRef.current = details.reason === \"escape-key\" ? \"escape-key\" : \"dismiss\";\n\t\tcontext.onOpenChange(false, \"press\");\n\t}, [context]);\n\tif (!context.breakpointActive) {}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_animate.Animate, {\n\t\ttype: \"presence\",\n\t\tpresent: Boolean(open),\n\t\tkeepChildrenMounted: Boolean(keepChildrenMounted),\n\t\tonExitComplete: handleExitComplete,\n\t\tlazyMount,\n\t\tpassThrough: context.breakpointActive,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperContent, {\n\t\t\tscope,\n\t\t\t\"data-state\": getState(open),\n\t\t\tid: context.contentId,\n\t\t\tref: forwardedRef,\n\t\t\tpassThrough: context.breakpointActive,\n\t\t\t...contentProps,\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PortalAdaptSafe, {\n\t\t\t\tcontext,\n\t\t\t\tchildren: contents\n\t\t\t})\n\t\t}, context.contentId)\n\t});\n});\nvar PopoverClose = (0, import_core.createRefComponent)(function PopoverClose2(props, forwardedRef) {\n\tvar { scope, className, ...rest } = props;\n\tvar context = usePopoverContext(scope);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.YStack, {\n\t\t...rest,\n\t\tref: forwardedRef,\n\t\tclassName: `is_PopoverClose ${className || \"\"}`.trim(),\n\t\tonPress: (0, import_helpers.composeEventHandlers)(props.onPress, function() {\n\t\t\tvar _context_onOpenChange;\n\t\t\treturn context === null || context === void 0 ? void 0 : (_context_onOpenChange = context.onOpenChange) === null || _context_onOpenChange === void 0 ? void 0 : _context_onOpenChange.call(context, false, \"press\");\n\t\t})\n\t});\n});\nvar PopoverArrow = (0, import_core.createStyledHOC)(import_popper.PopperArrowFrame, function PopoverArrow2(props, forwardedRef) {\n\tvar { scope, className, ...rest } = props;\n\tvar context = usePopoverContext(scope);\n\tif ((0, import_adapt.useAdaptIsActive)(context.adaptScope)) return null;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.PopperArrow, {\n\t\tscope,\n\t\tclassName: `is_PopoverArrow ${className || \"\"}`.trim(),\n\t\t...rest,\n\t\tref: forwardedRef\n\t});\n});\nvar PopoverScrollView = (0, import_core.createRefComponent)(function(param, ref) {\n\tvar { scope, ...props } = param;\n\tvar context = usePopoverContext(scope);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_scroll_view.ScrollView, {\n\t\tref,\n\t\tpointerEvents: context.breakpointActive ? \"none\" : void 0,\n\t\tscrollEnabled: !context.breakpointActive,\n\t\tpassThrough: context.breakpointActive,\n\t\t...props\n\t});\n});\nvar DEFAULT_SCOPE = \"\";\nvar Popover = (0, import_helpers.withStaticProperties)((0, import_core.createRefComponent)(function Popover2(param, ref) {\n\tvar { scope = DEFAULT_SCOPE, ...props } = param;\n\tvar id = React.useId();\n\tvar adaptScope = `PopoverAdapt${scope}`;\n\tvar { open: openProp, defaultOpen, onOpenChange } = props;\n\tvar viaRef = React.useRef(void 0);\n\tvar closeReasonRef = React.useRef(void 0);\n\tvar [open, setOpen] = (0, import_use_controllable_state.useControllableState)({\n\t\tprop: openProp,\n\t\tdefaultProp: defaultOpen || false,\n\t\tonChange: function onChange(val) {\n\t\t\tonOpenChange === null || onOpenChange === void 0 || onOpenChange(val, viaRef.current);\n\t\t}\n\t});\n\tvar handleOpenChange = (0, import_core.useEvent)(function(val, via) {\n\t\tviaRef.current = via;\n\t\tsetOpen(val);\n\t});\n\tReact.useEffect(function() {\n\t\tif (!open) return;\n\t\topenPopovers.add(setOpen);\n\t\treturn function() {\n\t\t\topenPopovers.delete(setOpen);\n\t\t};\n\t}, [open, setOpen]);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_adapt.AdaptParent, {\n\t\tscope: adaptScope,\n\t\tadaptChildren: props.children,\n\t\topen,\n\t\tonOpenChange: setOpen,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverInner, {\n\t\t\tadaptScope,\n\t\t\tref,\n\t\t\tid,\n\t\t\tscope,\n\t\t\topen,\n\t\t\tsetOpen,\n\t\t\thandleOpenChange,\n\t\t\tcloseReasonRef,\n\t\t\t...props\n\t\t})\n\t});\n}), {\n\tAnchor: PopoverAnchor,\n\tArrow: PopoverArrow,\n\tTrigger: PopoverTrigger,\n\tContent: PopoverContent,\n\tClose: PopoverClose,\n\tAdapt: import_adapt.Adapt,\n\tScrollView: PopoverScrollView,\n\tFocusScope: import_focus_scope.FocusScopeController\n});\nvar PopoverInner = (0, import_core.createRefComponent)(function PopoverInner2(props, forwardedRef) {\n\tvar { children, open: _openProp, defaultOpen: _defaultOpen, onOpenChange: _onOpenChange, scope = DEFAULT_SCOPE, keepChildrenMounted: keepChildrenMountedProp, hoverable, disableFocus = !hoverable, disableDismissable, zIndex, id, adaptScope, open, setOpen, handleOpenChange, closeReasonRef, ...restProps } = props;\n\tvar triggerRef = React.useRef(null);\n\tvar [hasCustomAnchor, setHasCustomAnchor] = React.useState(false);\n\tvar [keepChildrenMounted] = (0, import_use_controllable_state.useControllableState)({\n\t\tprop: keepChildrenMountedProp,\n\t\tdefaultProp: false,\n\t\ttransition: keepChildrenMountedProp === \"lazy\"\n\t});\n\tvar isAdapted = (0, import_adapt.useAdaptIsActive)(adaptScope);\n\tvar floatingContext = (0, import_useFloatingContext.useFloatingContext)({\n\t\topen,\n\t\tsetOpen: handleOpenChange,\n\t\tcloseReasonRef,\n\t\tdisable: isAdapted,\n\t\thoverable,\n\t\tdisableFocus\n\t});\n\tvar [anchorTo, setAnchorToRaw] = React.useState();\n\tvar setAnchorTo = (0, import_core.useCreateShallowSetState)(setAnchorToRaw);\n\tReact.useImperativeHandle(forwardedRef, function() {\n\t\treturn {\n\t\t\tanchorTo: setAnchorTo,\n\t\t\ttoggle: function toggle() {\n\t\t\t\treturn setOpen(function(prev) {\n\t\t\t\t\treturn !prev;\n\t\t\t\t});\n\t\t\t},\n\t\t\topen: function open2() {\n\t\t\t\treturn setOpen(true);\n\t\t\t},\n\t\t\tclose: function close() {\n\t\t\t\treturn setOpen(false);\n\t\t\t},\n\t\t\tsetOpen\n\t\t};\n\t});\n\tvar contentId = React.useId();\n\tvar onOpenToggle = (0, import_core.useEvent)(function() {\n\t\tif (open && isAdapted) return;\n\t\tcloseReasonRef.current = open ? \"reference-press\" : void 0;\n\t\tsetOpen(!open);\n\t});\n\tvar onCustomAnchorAdd = React.useCallback(function() {\n\t\treturn setHasCustomAnchor(true);\n\t}, []);\n\tvar onCustomAnchorRemove = React.useCallback(function() {\n\t\treturn setHasCustomAnchor(false);\n\t}, []);\n\tvar contents = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_popper.Popper, {\n\t\topen,\n\t\tpassThrough: isAdapted,\n\t\tscope,\n\t\tstayInFrame: true,\n\t\t...restProps,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverContextProvider, {\n\t\t\tscope,\n\t\t\topen,\n\t\t\tonOpenChange: handleOpenChange,\n\t\t\tonOpenToggle,\n\t\t\ttriggerRef,\n\t\t\tid,\n\t\t\tcontentId,\n\t\t\thasCustomAnchor,\n\t\t\tonCustomAnchorAdd,\n\t\t\tonCustomAnchorRemove,\n\t\t\tanchorTo,\n\t\t\tadaptScope,\n\t\t\tbreakpointActive: isAdapted,\n\t\t\tkeepChildrenMounted,\n\t\t\tdisableDismissable,\n\t\t\thoverable,\n\t\t\tcloseReasonRef,\n\t\t\tchildren\n\t\t})\n\t});\n\tvar result = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: import_constants.isWeb ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_floating.FloatingOverrideContext.Provider, {\n\t\tvalue: floatingContext,\n\t\tchildren: contents\n\t}) : contents });\n\tif (zIndex !== void 0) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverZIndexContext.Provider, {\n\t\tvalue: zIndex,\n\t\tchildren: result\n\t});\n\treturn result;\n});\nfunction getState(open) {\n\treturn open ? \"open\" : \"closed\";\n}\n//# sourceMappingURL=Popover.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC7C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EACnE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GAAG,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QAAQ,UAAU,IAAI,KAAK;GAC9G,WAAW,KAAK;GAChB,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAC3D,CAAC;CACF;CACA,OAAO;AACR;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKpG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CACpE,OAAO;CACP,YAAY;AACb,CAAC,IAAI,QACL,GACD;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,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IAAI,uBAAuB,MAAM,YAAY,WAAW;EACvD,OAAO,mBAAmB,KAAK;CAChC,GAAG,CAAC,CAAC;CACL,IAAI,WAA2B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,cAAc,QAAQ;EAChF;EACA,aAAa;EACb;EACA,aAAa;EACb,GAAG;EACH,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,wBAAwB;GAC7E;GACA;GACA,cAAc;GACd;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA,kBAAkB;GAClB;GACA;GACA;GACA;GACA;EACD,CAAC;CACF,CAAC;CACD,IAAI,SAAyB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,mBAAmB,UAAU,EAAE,UAAU,iBAAiB,QAAwB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,gBAAgB,wBAAwB,UAAU;EACxN,OAAO;EACP,UAAU;CACX,CAAC,IAAI,SAAS,CAAC;CACf,IAAI,WAAW,KAAK,GAAG,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,qBAAqB,UAAU;EACxG,OAAO;EACP,UAAU;CACX,CAAC;CACD,OAAO;AACR,CAAC;AACD,SAAS,SAAS,MAAM;CACvB,OAAO,OAAO,SAAS;AACxB"}
|
|
@@ -30,6 +30,6 @@ var useFloatingContext_native_exports = {};
|
|
|
30
30
|
__export(useFloatingContext_native_exports, { useFloatingContext: () => useFloatingContext });
|
|
31
31
|
module.exports = __toCommonJS(useFloatingContext_native_exports);
|
|
32
32
|
var import_react = __toESM(require("react"), 1);
|
|
33
|
-
var useFloatingContext = function() {
|
|
33
|
+
var useFloatingContext = function useFloatingContext2() {
|
|
34
34
|
return import_react.default.useCallback(function() {}, []);
|
|
35
35
|
};
|
|
@@ -30,7 +30,7 @@ var useFloatingContext_native_exports = {};
|
|
|
30
30
|
__export(useFloatingContext_native_exports, { useFloatingContext: () => useFloatingContext });
|
|
31
31
|
module.exports = __toCommonJS(useFloatingContext_native_exports);
|
|
32
32
|
var import_react = __toESM(require("react"), 1);
|
|
33
|
-
var useFloatingContext = function() {
|
|
33
|
+
var useFloatingContext = function useFloatingContext2() {
|
|
34
34
|
return import_react.default.useCallback(function() {}, []);
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFloatingContext.native.js","names":[],"sources":["cjs/useFloatingContext.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useFloatingContext_native_exports = {};\n__export(useFloatingContext_native_exports, {\n useFloatingContext: () => useFloatingContext\n});\nmodule.exports = __toCommonJS(useFloatingContext_native_exports);\nvar import_react = __toESM(require(\"react\"), 1);\nvar useFloatingContext = function() {\n return import_react.default.useCallback(function() {\n }, []);\n};\n//# sourceMappingURL=useFloatingContext.native.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oCAAoC,CAAC;AACzC,SAAS,mCAAmC,EAC1C,0BAA0B,mBAC5B,CAAC;AACD,OAAO,UAAU,aAAa,iCAAiC;AAC/D,IAAI,eAAe,QAAQ,QAAQ,OAAO,GAAG,CAAC;AAC9C,IAAI,qBAAqB,
|
|
1
|
+
{"version":3,"file":"useFloatingContext.native.js","names":[],"sources":["cjs/useFloatingContext.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar useFloatingContext_native_exports = {};\n__export(useFloatingContext_native_exports, {\n useFloatingContext: () => useFloatingContext\n});\nmodule.exports = __toCommonJS(useFloatingContext_native_exports);\nvar import_react = __toESM(require(\"react\"), 1);\nvar useFloatingContext = function useFloatingContext2() {\n return import_react.default.useCallback(function() {\n }, []);\n};\n//# sourceMappingURL=useFloatingContext.native.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oCAAoC,CAAC;AACzC,SAAS,mCAAmC,EAC1C,0BAA0B,mBAC5B,CAAC;AACD,OAAO,UAAU,aAAa,iCAAiC;AAC/D,IAAI,eAAe,QAAQ,QAAQ,OAAO,GAAG,CAAC;AAC9C,IAAI,qBAAqB,SAAS,sBAAsB;CACtD,OAAO,aAAa,QAAQ,YAAY,WAAW,CACnD,GAAG,CAAC,CAAC;AACP"}
|
|
@@ -19,17 +19,17 @@ import { useFloatingContext } from "./useFloatingContext.native.js";
|
|
|
19
19
|
|
|
20
20
|
var needsRepropagation = needsPortalRepropagation();
|
|
21
21
|
var openPopovers = /* @__PURE__ */ new Set();
|
|
22
|
-
var hasOpenPopovers = function() {
|
|
22
|
+
var hasOpenPopovers = function hasOpenPopovers2() {
|
|
23
23
|
return openPopovers.size > 0;
|
|
24
24
|
};
|
|
25
|
-
var closeOpenPopovers = function() {
|
|
25
|
+
var closeOpenPopovers = function closeOpenPopovers2() {
|
|
26
26
|
if (openPopovers.size === 0) return false;
|
|
27
27
|
openPopovers.forEach(function(setOpen) {
|
|
28
28
|
return setOpen(false);
|
|
29
29
|
});
|
|
30
30
|
return true;
|
|
31
31
|
};
|
|
32
|
-
var closeLastOpenedPopover = function() {
|
|
32
|
+
var closeLastOpenedPopover = function closeLastOpenedPopover2() {
|
|
33
33
|
if (openPopovers.size === 0) return false;
|
|
34
34
|
var last = Array.from(openPopovers).pop();
|
|
35
35
|
if (last) {
|
|
@@ -127,7 +127,7 @@ var PopoverContextProvider = /* @__PURE__ */ React.memo(function(param) {
|
|
|
127
127
|
})
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
|
-
var voidFn = function() {};
|
|
130
|
+
var voidFn = function voidFn2() {};
|
|
131
131
|
var PopoverAnchor = /* @__PURE__ */ React.memo(createRefComponent(function PopoverAnchor2(props, forwardedRef) {
|
|
132
132
|
var { scope, ...rest } = props;
|
|
133
133
|
var { onCustomAnchorAdd, onCustomAnchorRemove } = usePopoverContext(scope) || {};
|
|
@@ -164,7 +164,7 @@ var PopoverTrigger = /* @__PURE__ */ React.memo(createRefComponent(function Popo
|
|
|
164
164
|
triggerId
|
|
165
165
|
]);
|
|
166
166
|
if (!rest.children) return null;
|
|
167
|
-
var activateSelf = function() {
|
|
167
|
+
var activateSelf = function activateSelf2() {
|
|
168
168
|
triggerContext.setActiveTrigger(triggerId);
|
|
169
169
|
var el = triggerElRef.current;
|
|
170
170
|
if (el) triggerContext.triggerRef.current = el;
|
|
@@ -194,14 +194,14 @@ var PopoverTrigger = /* @__PURE__ */ React.memo(createRefComponent(function Popo
|
|
|
194
194
|
var virtualRef = React.useMemo(function() {
|
|
195
195
|
if (!anchorTo) return null;
|
|
196
196
|
return { current: {
|
|
197
|
-
getBoundingClientRect: function() {
|
|
197
|
+
getBoundingClientRect: function getBoundingClientRect() {
|
|
198
198
|
return isWeb ? DOMRect.fromRect(anchorTo) : anchorTo;
|
|
199
199
|
},
|
|
200
200
|
...!isWeb && {
|
|
201
|
-
measure: function(c) {
|
|
201
|
+
measure: function measure(c) {
|
|
202
202
|
return c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);
|
|
203
203
|
},
|
|
204
|
-
measureInWindow: function(c) {
|
|
204
|
+
measureInWindow: function measureInWindow(c) {
|
|
205
205
|
return c(anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.x, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.y, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.width, anchorTo === null || anchorTo === void 0 ? void 0 : anchorTo.height);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
@@ -225,6 +225,7 @@ var PopoverTrigger = /* @__PURE__ */ React.memo(createRefComponent(function Popo
|
|
|
225
225
|
});
|
|
226
226
|
}));
|
|
227
227
|
var PopoverContent = createStyledHOC(PopperContentFrame, function PopoverContent2(props, forwardedRef) {
|
|
228
|
+
var _contentImplProps_pointerEvents;
|
|
228
229
|
var { trapFocus, enableRemoveScroll = false, zIndex: zIndexProp, scope, forceMount, ...contentImplProps } = props;
|
|
229
230
|
var context = usePopoverContext(scope);
|
|
230
231
|
var adaptContext = useAdaptContext(context.adaptScope);
|
|
@@ -242,7 +243,6 @@ var PopoverContent = createStyledHOC(PopperContentFrame, function PopoverContent
|
|
|
242
243
|
if (!open && adaptContext.targetFullyHidden) return null;
|
|
243
244
|
} else if (isFullyHidden && !open) return null;
|
|
244
245
|
}
|
|
245
|
-
var _contentImplProps_pointerEvents;
|
|
246
246
|
return /* @__PURE__ */ jsx(PopoverPortal, {
|
|
247
247
|
passThrough: context.breakpointActive,
|
|
248
248
|
context,
|
|
@@ -287,7 +287,7 @@ var PopoverContent = createStyledHOC(PopperContentFrame, function PopoverContent
|
|
|
287
287
|
"opacity",
|
|
288
288
|
"y"
|
|
289
289
|
]) } });
|
|
290
|
-
var useParentContexts = function(scope) {
|
|
290
|
+
var useParentContexts = function useParentContexts2(scope) {
|
|
291
291
|
var context = usePopoverContext(scope);
|
|
292
292
|
var triggerContext = usePopoverTriggerContext(scope);
|
|
293
293
|
return {
|
|
@@ -316,7 +316,7 @@ function RepropagateParentContexts(param) {
|
|
|
316
316
|
})
|
|
317
317
|
});
|
|
318
318
|
}
|
|
319
|
-
var PortalAdaptSafe = function(param) {
|
|
319
|
+
var PortalAdaptSafe = function PortalAdaptSafe2(param) {
|
|
320
320
|
"use no memo";
|
|
321
321
|
var { children, context } = param;
|
|
322
322
|
if (needsRepropagation) {
|
|
@@ -436,7 +436,7 @@ var Popover = withStaticProperties(createRefComponent(function Popover2(param, r
|
|
|
436
436
|
var [open, setOpen] = useControllableState({
|
|
437
437
|
prop: openProp,
|
|
438
438
|
defaultProp: defaultOpen || false,
|
|
439
|
-
onChange: function(val) {
|
|
439
|
+
onChange: function onChange(val) {
|
|
440
440
|
onOpenChange === null || onOpenChange === void 0 || onOpenChange(val, viaRef.current);
|
|
441
441
|
}
|
|
442
442
|
});
|
|
@@ -501,15 +501,15 @@ var PopoverInner = createRefComponent(function PopoverInner2(props, forwardedRef
|
|
|
501
501
|
React.useImperativeHandle(forwardedRef, function() {
|
|
502
502
|
return {
|
|
503
503
|
anchorTo: setAnchorTo,
|
|
504
|
-
toggle: function() {
|
|
504
|
+
toggle: function toggle() {
|
|
505
505
|
return setOpen(function(prev) {
|
|
506
506
|
return !prev;
|
|
507
507
|
});
|
|
508
508
|
},
|
|
509
|
-
open: function() {
|
|
509
|
+
open: function open2() {
|
|
510
510
|
return setOpen(true);
|
|
511
511
|
},
|
|
512
|
-
close: function() {
|
|
512
|
+
close: function close() {
|
|
513
513
|
return setOpen(false);
|
|
514
514
|
},
|
|
515
515
|
setOpen
|