@tamagui/popper 3.0.0-beta.831.1 → 3.0.0-beta.889.1
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/Popper.cjs +1 -1
- package/dist/cjs/Popper.native.cjs +2 -1
- package/dist/cjs/Popper.native.js +2 -1
- package/dist/cjs/Popper.native.js.map +1 -1
- package/dist/esm/Popper.mjs +1 -1
- package/dist/esm/Popper.mjs.map +1 -1
- package/dist/esm/Popper.native.js +2 -1
- package/dist/esm/Popper.native.js.map +1 -1
- package/dist/jsx/Popper.mjs +1 -1
- package/dist/jsx/Popper.mjs.map +1 -1
- package/dist/jsx/Popper.native.cjs +2 -1
- package/dist/jsx/Popper.native.js +2 -1
- package/dist/jsx/Popper.native.js.map +1 -1
- package/package.json +9 -9
- package/src/Popper.tsx +2 -1
- package/types/Popper.d.ts +1 -1
- package/types/Popper.d.ts.map +1 -1
package/dist/cjs/Popper.cjs
CHANGED
|
@@ -453,7 +453,7 @@ const PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(pr
|
|
|
453
453
|
const { scope, animatePosition, transition, ...rest } = propsIn;
|
|
454
454
|
const { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;
|
|
455
455
|
const context = usePopperContext(scope);
|
|
456
|
-
const sizeVal = typeof sizeProp === "number" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)(sizeProp ?? context.size)) * .52 - 11.5;
|
|
456
|
+
const sizeVal = typeof sizeProp === "number" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)(sizeProp ?? context.size ?? true)) * .52 - 11.5;
|
|
457
457
|
const size = Math.max(0, +sizeVal);
|
|
458
458
|
const { placement } = context;
|
|
459
459
|
const refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);
|
|
@@ -466,7 +466,8 @@ var PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(prop
|
|
|
466
466
|
var { scope, animatePosition, transition, ...rest } = propsIn;
|
|
467
467
|
var { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;
|
|
468
468
|
var context = usePopperContext(scope);
|
|
469
|
-
var
|
|
469
|
+
var _ref;
|
|
470
|
+
var sizeVal = typeof sizeProp === "number" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)((_ref = sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size) !== null && _ref !== void 0 ? _ref : true)) * .52 - 11.5;
|
|
470
471
|
var size = Math.max(0, +sizeVal);
|
|
471
472
|
var { placement } = context;
|
|
472
473
|
var refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);
|
|
@@ -466,7 +466,8 @@ var PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(prop
|
|
|
466
466
|
var { scope, animatePosition, transition, ...rest } = propsIn;
|
|
467
467
|
var { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;
|
|
468
468
|
var context = usePopperContext(scope);
|
|
469
|
-
var
|
|
469
|
+
var _ref;
|
|
470
|
+
var sizeVal = typeof sizeProp === "number" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)((_ref = sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size) !== null && _ref !== void 0 ? _ref : true)) * .52 - 11.5;
|
|
470
471
|
var size = Math.max(0, +sizeVal);
|
|
471
472
|
var { placement } = context;
|
|
472
473
|
var refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.native.js","names":[],"sources":["cjs/Popper.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 Popper_exports = {};\n__export(Popper_exports, {\n\tPopper: () => Popper,\n\tPopperAnchor: () => PopperAnchor,\n\tPopperArrow: () => PopperArrow,\n\tPopperArrowFrame: () => PopperArrowFrame,\n\tPopperContent: () => PopperContent,\n\tPopperContentFrame: () => PopperContentFrame,\n\tPopperContextFast: () => PopperContextFast,\n\tPopperContextSlow: () => PopperContextSlow,\n\tPopperPositionContext: () => PopperPositionContext,\n\tPopperProvider: () => PopperProvider,\n\tPopperProviderFast: () => PopperProviderFast,\n\tPopperProviderSlow: () => PopperProviderSlow,\n\tsetupPopper: () => setupPopper,\n\tusePopperContext: () => usePopperContext,\n\tusePopperContextSlow: () => usePopperContextSlow\n});\nmodule.exports = __toCommonJS(Popper_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react_dom = require(\"react-dom\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_floating = require(\"@tamagui/floating\");\nvar import_floating2 = require(\"@tamagui/floating\");\nvar import_get_token = require(\"@tamagui/get-token\");\nvar import_start_transition = require(\"@tamagui/start-transition\");\nvar React = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nfunction _instanceof(left, right) {\n\tif (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) return !!right[Symbol.hasInstance](left);\n\telse return left instanceof right;\n}\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar PopperContextFast = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"Popper__\"\n);\nvar PopperPositionContext = import_core.createStyledContext;\nvar { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nvar PopperContextSlow = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"PopperSlow__\"\n);\nvar { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nvar PopperProvider = function(param) {\n\tvar { scope, children, ...context } = param;\n\tvar fns = React.useRef(context);\n\tfns.current = context;\n\tvar [slowContext] = React.useState(function() {\n\t\treturn {\n\t\t\trefs: context.refs,\n\t\t\ttriggerElements: context.triggerElements,\n\t\t\tupdate() {\n\t\t\t\tfor (var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++) a[_key] = arguments[_key];\n\t\t\t\tfns.current.update(...a);\n\t\t\t},\n\t\t\tgetReferenceProps(p) {\n\t\t\t\tvar _fns_current_getReferenceProps, _fns_current;\n\t\t\t\treturn (_fns_current_getReferenceProps = (_fns_current = fns.current).getReferenceProps) === null || _fns_current_getReferenceProps === void 0 ? void 0 : _fns_current_getReferenceProps.call(_fns_current, p);\n\t\t\t},\n\t\t\tonHoverReference(e) {\n\t\t\t\tvar _fns_current_onHoverReference, _fns_current;\n\t\t\t\t(_fns_current_onHoverReference = (_fns_current = fns.current).onHoverReference) === null || _fns_current_onHoverReference === void 0 || _fns_current_onHoverReference.call(_fns_current, e);\n\t\t\t},\n\t\t\tonLeaveReference() {\n\t\t\t\tvar _fns_current_onLeaveReference, _fns_current;\n\t\t\t\t(_fns_current_onLeaveReference = (_fns_current = fns.current).onLeaveReference) === null || _fns_current_onLeaveReference === void 0 || _fns_current_onLeaveReference.call(_fns_current);\n\t\t\t}\n\t\t};\n\t});\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nvar checkFloating = {\n\tname: \"checkFloating\",\n\tfn(data) {\n\t\treturn { data: { hasFloating: !!data.rects.floating.width } };\n\t}\n};\nvar setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tvar rafId = requestAnimationFrame(function() {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tvar cleanups = [function() {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (_instanceof(reference, HTMLElement)) cleanups.push((0, import_core.registerLayoutNode)(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tvar lastWidth = -1;\n\t\tvar lastHeight = -1;\n\t\tvar ro = new ResizeObserver(function(entries) {\n\t\t\tvar entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tvar { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(function() {\n\t\t\treturn ro.disconnect();\n\t\t});\n\t}\n\tvar ancestors = [..._instanceof(reference, Element) ? (0, import_floating2.getOverflowAncestors)(reference) : [], ...(0, import_floating2.getOverflowAncestors)(floating)];\n\tvar uniqueAncestors = [...new Set(ancestors)];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = uniqueAncestors[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.addEventListener(\"scroll\", update, { passive: true });\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(function() {\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = uniqueAncestors[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) _step2.value.removeEventListener(\"scroll\", update);\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn function() {\n\t\treturn cleanups.forEach(function(fn) {\n\t\t\treturn fn();\n\t\t});\n\t};\n}\nfunction Popper(props) {\n\tvar { children, size, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset, disableRTL, resize, passThrough, open, scope } = props;\n\tvar [arrowEl, setArrow] = React.useState(null);\n\tvar [arrowSize, setArrowSize] = React.useState(0);\n\tvar offsetOptions = offset !== null && offset !== void 0 ? offset : arrowSize;\n\tReact.useRef({});\n\tvar isOpen = passThrough ? false : open !== null && open !== void 0 ? open : true;\n\tvar middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? (0, import_floating2.offset)(offsetOptions) : null,\n\t\tallowFlip ? (0, import_floating2.flip)(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? (0, import_floating2.shift)({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...(typeof stayInFrame === \"undefined\" ? \"undefined\" : _type_of(stayInFrame)) === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? (0, import_floating2.arrow)({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tnull,\n\t\tnull,\n\t\tnull\n\t].filter(Boolean);\n\tvar floating = (0, import_floating2.useFloating)({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: (disableRTL !== null && disableRTL !== void 0 ? disableRTL : setupOptions.disableRTL) ? {\n\t\t\t...import_floating2.platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : import_floating2.platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tvar { middlewareData } = floating;\n\tvar dimensions = (0, import_react_native.useWindowDimensions)();\n\tvar [keyboardOpen, setKeyboardOpen] = React.useState(false);\n\tReact.useEffect(function() {\n\t\tvar showSubscription = import_react_native.Keyboard.addListener(\"keyboardDidShow\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(true);\n\t\t\t});\n\t\t});\n\t\tvar hideSubscription = import_react_native.Keyboard.addListener(\"keyboardDidHide\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(false);\n\t\t\t});\n\t\t});\n\t\treturn function() {\n\t\t\tshowSubscription.remove();\n\t\t\thideSubscription.remove();\n\t\t};\n\t}, []);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (passThrough) return;\n\t\tfloating.update();\n\t}, [\n\t\tpassThrough,\n\t\tdimensions,\n\t\tkeyboardOpen\n\t]);\n\tvar popperContext = React.useMemo(function() {\n\t\tvar _middlewareData_checkFloating;\n\t\treturn {\n\t\t\tsize,\n\t\t\tarrowRef: setArrow,\n\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\tonArrowSize: setArrowSize,\n\t\t\thasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,\n\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\topen: !!open,\n\t\t\t...floating\n\t\t};\n\t}, [\n\t\topen,\n\t\tsize,\n\t\tfloating,\n\t\tJSON.stringify(middlewareData.arrow || null),\n\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t]);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProvider, {\n\t\tscope,\n\t\t...popperContext,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_floating.FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nvar PopperAnchor = (0, import_core.createStyledHOC)(import_core.View, function PopperAnchor2(props, forwardedRef) {\n\tvar { virtualRef, scope, ...rest } = props;\n\tvar context = usePopperContextSlow(scope);\n\tvar { getReferenceProps, refs, update } = context;\n\tvar ref = React.useRef(null);\n\tvar triggerId = React.useId();\n\tReact.useEffect(function() {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!_instanceof(ref.current, Element)) return;\n\t\tvar el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn function() {\n\t\t\tvar _context_triggerElements;\n\t\t\t(_context_triggerElements = context.triggerElements) === null || _context_triggerElements === void 0 || _context_triggerElements.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(function() {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tvar refProps = (getReferenceProps === null || getReferenceProps === void 0 ? void 0 : getReferenceProps({\n\t\t...rest,\n\t\tref\n\t})) || null;\n\tvar safeSetReference = React.useCallback(\n\t\tfunction(node) {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\trefs.setReference(node);\n\t\t\t});\n\t\t},\n\t\t// it was refs.setRefernce but its stable and refs is undefined on server\n\t\t[refs]\n\t);\n\tvar shouldHandleInHover = import_constants.isWeb && scope;\n\tvar composedRefs = (0, import_compose_refs.useComposedRefs)(\n\t\tforwardedRef,\n\t\tref,\n\t\t// web handles this onMouseEnter below so it can support multiple targets + hovering\n\t\tshouldHandleInHover ? void 0 : safeSetReference\n\t);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: function(e) {\n\t\t\t\tvar _e_currentTarget;\n\t\t\t\tvar el = (_e_currentTarget = e.currentTarget) !== null && _e_currentTarget !== void 0 ? _e_currentTarget : ref.current;\n\t\t\t\tif (_instanceof(el, HTMLElement)) {\n\t\t\t\t\tvar _refProps_onPointerEnter, _context_onHoverReference;\n\t\t\t\t\t(0, import_react_dom.flushSync)(function() {\n\t\t\t\t\t\treturn refs.setReference(el);\n\t\t\t\t\t});\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\t(_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e);\n\t\t\t\t\t(_context_onHoverReference = context.onHoverReference) === null || _context_onHoverReference === void 0 || _context_onHoverReference.call(context, e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: function(e) {\n\t\t\t\tvar _context_onLeaveReference, _refProps_onMouseLeave;\n\t\t\t\t(_context_onLeaveReference = context.onLeaveReference) === null || _context_onLeaveReference === void 0 || _context_onLeaveReference.call(context);\n\t\t\t\trefProps === null || refProps === void 0 || (_refProps_onMouseLeave = refProps.onMouseLeave) == null || _refProps_onMouseLeave.call(refProps, e);\n\t\t\t}\n\t\t}\n\t});\n});\nvar PopperContentFrame = (0, import_core.styled)(import_core.View, { displayName: \"PopperContent\" });\nvar PopperContent = (0, import_core.createRefComponent)(function PopperContent2(props, forwardedRef) {\n\tvar isAnimatePosControlled = \"animatePosition\" in props;\n\tvar { scope, animatePosition, children, passThrough, ...rest } = props;\n\tvar animatePos = animatePosition;\n\tvar context = usePopperContext(scope);\n\tvar { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tvar updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tvar lastNodeRef = React.useRef(null);\n\tvar safeSetFloating = React.useCallback(\n\t\tfunction(node) {\n\t\t\tvar isNewNode = node !== lastNodeRef.current;\n\t\t\tif (node) {\n\t\t\t\tlastNodeRef.current = node;\n\t\t\t\trefs.setFloating(node);\n\t\t\t\tif (!isNewNode) {\n\t\t\t\t\tvar _updateRef_current;\n\t\t\t\t\t(_updateRef_current = updateRef.current) === null || _updateRef_current === void 0 || _updateRef_current.call(updateRef);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t// null calls are blocked: cycling nulls are transient, genuine unmount\n\t\t// is handled by the useEffect cleanup below\n\t\t[refs.setFloating]\n\t);\n\tReact.useEffect(function() {\n\t\treturn function() {\n\t\t\tvar ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tvar contentRefs = (0, import_compose_refs.useComposedRefs)(safeSetFloating, forwardedRef);\n\tvar [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tvar hasBeenPositioned = React.useRef(false);\n\tvar lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tvar brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tvar effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tvar effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tvar hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tvar disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tvar [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(function() {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tvar frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : (\n\t\t// omit x/y when hiding - prevents motion driver from animating from origin\n\t\t{\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t}),\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tvar { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tvar transformOriginStyle = import_constants.isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nvar PopperArrowFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nvar PopperArrowOuterFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nvar opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nvar PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(propsIn, forwardedRef) {\n\tvar _context_arrowStyle, _context_arrowStyle1;\n\tvar isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tvar { scope, animatePosition, transition, ...rest } = propsIn;\n\tvar { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tvar context = usePopperContext(scope);\n\tvar sizeVal = typeof sizeProp === \"number\" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)(sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size)) * .52 - 11.5;\n\tvar size = Math.max(0, +sizeVal);\n\tvar { placement } = context;\n\tvar refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);\n\tvar x = ((_context_arrowStyle = context.arrowStyle) === null || _context_arrowStyle === void 0 ? void 0 : _context_arrowStyle.x) || 0;\n\tvar y = ((_context_arrowStyle1 = context.arrowStyle) === null || _context_arrowStyle1 === void 0 ? void 0 : _context_arrowStyle1.y) || 0;\n\tvar arrowPositioned = context.arrowStyle != null;\n\tvar primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tvar arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tvar innerArrowStyle = {};\n\tvar isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tvar oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t\tvar _context_onArrowSize;\n\t\t\t(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n//# sourceMappingURL=Popper.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,KA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,MAAM;EAChE,CAAC,GAAG,iBAAiB,0BAAyB,CAAE,WAAW;GAC1D,IAAI;GACJ,CAAC,uBAAuB,QAAQ,iBAAiB,QAAQ,yBAAyB,KAAK,KAAK,qBAAqB,KAAK,SAAS,IAAI;EACpI,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;CAC/B;CACA,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,uBAAuB;EACzE,KAAK;EACL,GAAG;EACH,GAAG,CAAC,mBAAmB,EAAE,SAAS,EAAE;EACpC,GAAG,0BAA0B;GAC5B,YAAY,kBAAkB,aAAa,KAAK;GAChD,aAAa,kBAAkB,CAAC,WAAW,IAAI,CAAC;GAChD,iBAAiB;EAClB;EACA,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,kBAAkB;GACvE,OAAO;GACP,QAAQ;GACR,GAAG;GACH,GAAG;GACH,QAAQ;GACR,GAAG,qBAAqB,YAAY;IACnC,iBAAiB;IACjB,gBAAgB;GACjB;GACA,GAAG,qBAAqB,SAAS;IAChC,mBAAmB;IACnB,kBAAkB;GACnB;GACA,GAAG,qBAAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Popper.native.js","names":[],"sources":["cjs/Popper.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 Popper_exports = {};\n__export(Popper_exports, {\n\tPopper: () => Popper,\n\tPopperAnchor: () => PopperAnchor,\n\tPopperArrow: () => PopperArrow,\n\tPopperArrowFrame: () => PopperArrowFrame,\n\tPopperContent: () => PopperContent,\n\tPopperContentFrame: () => PopperContentFrame,\n\tPopperContextFast: () => PopperContextFast,\n\tPopperContextSlow: () => PopperContextSlow,\n\tPopperPositionContext: () => PopperPositionContext,\n\tPopperProvider: () => PopperProvider,\n\tPopperProviderFast: () => PopperProviderFast,\n\tPopperProviderSlow: () => PopperProviderSlow,\n\tsetupPopper: () => setupPopper,\n\tusePopperContext: () => usePopperContext,\n\tusePopperContextSlow: () => usePopperContextSlow\n});\nmodule.exports = __toCommonJS(Popper_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react_dom = require(\"react-dom\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_floating = require(\"@tamagui/floating\");\nvar import_floating2 = require(\"@tamagui/floating\");\nvar import_get_token = require(\"@tamagui/get-token\");\nvar import_start_transition = require(\"@tamagui/start-transition\");\nvar React = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nfunction _instanceof(left, right) {\n\tif (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) return !!right[Symbol.hasInstance](left);\n\telse return left instanceof right;\n}\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar PopperContextFast = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"Popper__\"\n);\nvar PopperPositionContext = import_core.createStyledContext;\nvar { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nvar PopperContextSlow = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"PopperSlow__\"\n);\nvar { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nvar PopperProvider = function(param) {\n\tvar { scope, children, ...context } = param;\n\tvar fns = React.useRef(context);\n\tfns.current = context;\n\tvar [slowContext] = React.useState(function() {\n\t\treturn {\n\t\t\trefs: context.refs,\n\t\t\ttriggerElements: context.triggerElements,\n\t\t\tupdate() {\n\t\t\t\tfor (var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++) a[_key] = arguments[_key];\n\t\t\t\tfns.current.update(...a);\n\t\t\t},\n\t\t\tgetReferenceProps(p) {\n\t\t\t\tvar _fns_current_getReferenceProps, _fns_current;\n\t\t\t\treturn (_fns_current_getReferenceProps = (_fns_current = fns.current).getReferenceProps) === null || _fns_current_getReferenceProps === void 0 ? void 0 : _fns_current_getReferenceProps.call(_fns_current, p);\n\t\t\t},\n\t\t\tonHoverReference(e) {\n\t\t\t\tvar _fns_current_onHoverReference, _fns_current;\n\t\t\t\t(_fns_current_onHoverReference = (_fns_current = fns.current).onHoverReference) === null || _fns_current_onHoverReference === void 0 || _fns_current_onHoverReference.call(_fns_current, e);\n\t\t\t},\n\t\t\tonLeaveReference() {\n\t\t\t\tvar _fns_current_onLeaveReference, _fns_current;\n\t\t\t\t(_fns_current_onLeaveReference = (_fns_current = fns.current).onLeaveReference) === null || _fns_current_onLeaveReference === void 0 || _fns_current_onLeaveReference.call(_fns_current);\n\t\t\t}\n\t\t};\n\t});\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nvar checkFloating = {\n\tname: \"checkFloating\",\n\tfn(data) {\n\t\treturn { data: { hasFloating: !!data.rects.floating.width } };\n\t}\n};\nvar setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tvar rafId = requestAnimationFrame(function() {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tvar cleanups = [function() {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (_instanceof(reference, HTMLElement)) cleanups.push((0, import_core.registerLayoutNode)(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tvar lastWidth = -1;\n\t\tvar lastHeight = -1;\n\t\tvar ro = new ResizeObserver(function(entries) {\n\t\t\tvar entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tvar { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(function() {\n\t\t\treturn ro.disconnect();\n\t\t});\n\t}\n\tvar ancestors = [..._instanceof(reference, Element) ? (0, import_floating2.getOverflowAncestors)(reference) : [], ...(0, import_floating2.getOverflowAncestors)(floating)];\n\tvar uniqueAncestors = [...new Set(ancestors)];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = uniqueAncestors[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.addEventListener(\"scroll\", update, { passive: true });\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(function() {\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = uniqueAncestors[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) _step2.value.removeEventListener(\"scroll\", update);\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn function() {\n\t\treturn cleanups.forEach(function(fn) {\n\t\t\treturn fn();\n\t\t});\n\t};\n}\nfunction Popper(props) {\n\tvar { children, size, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset, disableRTL, resize, passThrough, open, scope } = props;\n\tvar [arrowEl, setArrow] = React.useState(null);\n\tvar [arrowSize, setArrowSize] = React.useState(0);\n\tvar offsetOptions = offset !== null && offset !== void 0 ? offset : arrowSize;\n\tReact.useRef({});\n\tvar isOpen = passThrough ? false : open !== null && open !== void 0 ? open : true;\n\tvar middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? (0, import_floating2.offset)(offsetOptions) : null,\n\t\tallowFlip ? (0, import_floating2.flip)(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? (0, import_floating2.shift)({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...(typeof stayInFrame === \"undefined\" ? \"undefined\" : _type_of(stayInFrame)) === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? (0, import_floating2.arrow)({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tnull,\n\t\tnull,\n\t\tnull\n\t].filter(Boolean);\n\tvar floating = (0, import_floating2.useFloating)({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: (disableRTL !== null && disableRTL !== void 0 ? disableRTL : setupOptions.disableRTL) ? {\n\t\t\t...import_floating2.platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : import_floating2.platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tvar { middlewareData } = floating;\n\tvar dimensions = (0, import_react_native.useWindowDimensions)();\n\tvar [keyboardOpen, setKeyboardOpen] = React.useState(false);\n\tReact.useEffect(function() {\n\t\tvar showSubscription = import_react_native.Keyboard.addListener(\"keyboardDidShow\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(true);\n\t\t\t});\n\t\t});\n\t\tvar hideSubscription = import_react_native.Keyboard.addListener(\"keyboardDidHide\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(false);\n\t\t\t});\n\t\t});\n\t\treturn function() {\n\t\t\tshowSubscription.remove();\n\t\t\thideSubscription.remove();\n\t\t};\n\t}, []);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (passThrough) return;\n\t\tfloating.update();\n\t}, [\n\t\tpassThrough,\n\t\tdimensions,\n\t\tkeyboardOpen\n\t]);\n\tvar popperContext = React.useMemo(function() {\n\t\tvar _middlewareData_checkFloating;\n\t\treturn {\n\t\t\tsize,\n\t\t\tarrowRef: setArrow,\n\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\tonArrowSize: setArrowSize,\n\t\t\thasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,\n\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\topen: !!open,\n\t\t\t...floating\n\t\t};\n\t}, [\n\t\topen,\n\t\tsize,\n\t\tfloating,\n\t\tJSON.stringify(middlewareData.arrow || null),\n\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t]);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProvider, {\n\t\tscope,\n\t\t...popperContext,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_floating.FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nvar PopperAnchor = (0, import_core.createStyledHOC)(import_core.View, function PopperAnchor2(props, forwardedRef) {\n\tvar { virtualRef, scope, ...rest } = props;\n\tvar context = usePopperContextSlow(scope);\n\tvar { getReferenceProps, refs, update } = context;\n\tvar ref = React.useRef(null);\n\tvar triggerId = React.useId();\n\tReact.useEffect(function() {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!_instanceof(ref.current, Element)) return;\n\t\tvar el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn function() {\n\t\t\tvar _context_triggerElements;\n\t\t\t(_context_triggerElements = context.triggerElements) === null || _context_triggerElements === void 0 || _context_triggerElements.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(function() {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tvar refProps = (getReferenceProps === null || getReferenceProps === void 0 ? void 0 : getReferenceProps({\n\t\t...rest,\n\t\tref\n\t})) || null;\n\tvar safeSetReference = React.useCallback(\n\t\tfunction(node) {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\trefs.setReference(node);\n\t\t\t});\n\t\t},\n\t\t// it was refs.setRefernce but its stable and refs is undefined on server\n\t\t[refs]\n\t);\n\tvar shouldHandleInHover = import_constants.isWeb && scope;\n\tvar composedRefs = (0, import_compose_refs.useComposedRefs)(\n\t\tforwardedRef,\n\t\tref,\n\t\t// web handles this onMouseEnter below so it can support multiple targets + hovering\n\t\tshouldHandleInHover ? void 0 : safeSetReference\n\t);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: function(e) {\n\t\t\t\tvar _e_currentTarget;\n\t\t\t\tvar el = (_e_currentTarget = e.currentTarget) !== null && _e_currentTarget !== void 0 ? _e_currentTarget : ref.current;\n\t\t\t\tif (_instanceof(el, HTMLElement)) {\n\t\t\t\t\tvar _refProps_onPointerEnter, _context_onHoverReference;\n\t\t\t\t\t(0, import_react_dom.flushSync)(function() {\n\t\t\t\t\t\treturn refs.setReference(el);\n\t\t\t\t\t});\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\t(_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e);\n\t\t\t\t\t(_context_onHoverReference = context.onHoverReference) === null || _context_onHoverReference === void 0 || _context_onHoverReference.call(context, e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: function(e) {\n\t\t\t\tvar _context_onLeaveReference, _refProps_onMouseLeave;\n\t\t\t\t(_context_onLeaveReference = context.onLeaveReference) === null || _context_onLeaveReference === void 0 || _context_onLeaveReference.call(context);\n\t\t\t\trefProps === null || refProps === void 0 || (_refProps_onMouseLeave = refProps.onMouseLeave) == null || _refProps_onMouseLeave.call(refProps, e);\n\t\t\t}\n\t\t}\n\t});\n});\nvar PopperContentFrame = (0, import_core.styled)(import_core.View, { displayName: \"PopperContent\" });\nvar PopperContent = (0, import_core.createRefComponent)(function PopperContent2(props, forwardedRef) {\n\tvar isAnimatePosControlled = \"animatePosition\" in props;\n\tvar { scope, animatePosition, children, passThrough, ...rest } = props;\n\tvar animatePos = animatePosition;\n\tvar context = usePopperContext(scope);\n\tvar { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tvar updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tvar lastNodeRef = React.useRef(null);\n\tvar safeSetFloating = React.useCallback(\n\t\tfunction(node) {\n\t\t\tvar isNewNode = node !== lastNodeRef.current;\n\t\t\tif (node) {\n\t\t\t\tlastNodeRef.current = node;\n\t\t\t\trefs.setFloating(node);\n\t\t\t\tif (!isNewNode) {\n\t\t\t\t\tvar _updateRef_current;\n\t\t\t\t\t(_updateRef_current = updateRef.current) === null || _updateRef_current === void 0 || _updateRef_current.call(updateRef);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t// null calls are blocked: cycling nulls are transient, genuine unmount\n\t\t// is handled by the useEffect cleanup below\n\t\t[refs.setFloating]\n\t);\n\tReact.useEffect(function() {\n\t\treturn function() {\n\t\t\tvar ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tvar contentRefs = (0, import_compose_refs.useComposedRefs)(safeSetFloating, forwardedRef);\n\tvar [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tvar hasBeenPositioned = React.useRef(false);\n\tvar lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tvar brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tvar effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tvar effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tvar hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tvar disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tvar [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(function() {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tvar frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : (\n\t\t// omit x/y when hiding - prevents motion driver from animating from origin\n\t\t{\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t}),\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tvar { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tvar transformOriginStyle = import_constants.isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nvar PopperArrowFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nvar PopperArrowOuterFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nvar opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nvar PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(propsIn, forwardedRef) {\n\tvar _context_arrowStyle, _context_arrowStyle1;\n\tvar isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tvar { scope, animatePosition, transition, ...rest } = propsIn;\n\tvar { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tvar context = usePopperContext(scope);\n\tvar _ref;\n\tvar sizeVal = typeof sizeProp === \"number\" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)((_ref = sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size) !== null && _ref !== void 0 ? _ref : true)) * .52 - 11.5;\n\tvar size = Math.max(0, +sizeVal);\n\tvar { placement } = context;\n\tvar refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);\n\tvar x = ((_context_arrowStyle = context.arrowStyle) === null || _context_arrowStyle === void 0 ? void 0 : _context_arrowStyle.x) || 0;\n\tvar y = ((_context_arrowStyle1 = context.arrowStyle) === null || _context_arrowStyle1 === void 0 ? void 0 : _context_arrowStyle1.y) || 0;\n\tvar arrowPositioned = context.arrowStyle != null;\n\tvar primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tvar arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tvar innerArrowStyle = {};\n\tvar isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tvar oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t\tvar _context_onArrowSize;\n\t\t\t(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n//# sourceMappingURL=Popper.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,YAA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ChE,CAAC,GAAG,iBAAiB,0BAAyB,CAAE,WAAW;GAC1D,IAAI;GACJ,CAAC,uBAAuB,QAAQ,iBAAiB,QAAQ,yBAAyB,KAAK,KAAK,qBAAqB,KAAK,SAAS,IAAI;EACpI,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;CAC/B;CACA,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,uBAAuB;EACzE,KAAK;EACL,GAAG;EACH,GAAG,CAAC,mBAAmB,EAAE,SAAS,EAAE;EACpC,GAAG,0BAA0B;GAC5B,YAAY,kBAAkB,aAAa,KAAK;GAChD,aAAa,kBAAkB,CAAC,WAAW,IAAI,CAAC;GAChD,iBAAiB;EAClB;EACA,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,kBAAkB;GACvE,OAAO;GACP,QAAQ;GACR,GAAG;GACH,GAAG;GACH,QAAQ;GACR,GAAG,qBAAqB,YAAY;IACnC,iBAAiB;IACjB,gBAAgB;GACjB;GACA,GAAG,qBAAqB,SAAS;IAChC,mBAAmB;IACnB,kBAAkB;GACnB;GACA,GAAG,qBAAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
|
package/dist/esm/Popper.mjs
CHANGED
|
@@ -406,7 +406,7 @@ const PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedR
|
|
|
406
406
|
const { scope, animatePosition, transition, ...rest } = propsIn;
|
|
407
407
|
const { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;
|
|
408
408
|
const context = usePopperContext(scope);
|
|
409
|
-
const sizeVal = typeof sizeProp === "number" ? sizeProp : getVariableValue(getSize(sizeProp ?? context.size)) * .52 - 11.5;
|
|
409
|
+
const sizeVal = typeof sizeProp === "number" ? sizeProp : getVariableValue(getSize(sizeProp ?? context.size ?? true)) * .52 - 11.5;
|
|
410
410
|
const size = Math.max(0, +sizeVal);
|
|
411
411
|
const { placement } = context;
|
|
412
412
|
const refs = useComposedRefs(context.arrowRef, forwardedRef);
|
package/dist/esm/Popper.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.js","names":[],"sources":["esm/Popper.js"],"sourcesContent":["import { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createRefComponent, createStyledContext, createStyledHOC, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, size, useFloating } from \"@tamagui/floating\";\nimport { getSize } from \"@tamagui/get-token\";\nimport { startTransition } from \"@tamagui/start-transition\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nconst PopperContextFast = createStyledContext({}, \"Popper__\");\nconst PopperPositionContext = createStyledContext;\nconst { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nconst PopperContextSlow = createStyledContext({}, \"PopperSlow__\");\nconst { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nconst PopperProvider = ({ scope, children, ...context }) => {\n\tconst fns = React.useRef(context);\n\tfns.current = context;\n\tconst [slowContext] = React.useState(() => ({\n\t\trefs: context.refs,\n\t\ttriggerElements: context.triggerElements,\n\t\tupdate(...a) {\n\t\t\tfns.current.update(...a);\n\t\t},\n\t\tgetReferenceProps(p) {\n\t\t\treturn fns.current.getReferenceProps?.(p);\n\t\t},\n\t\tonHoverReference(e) {\n\t\t\tfns.current.onHoverReference?.(e);\n\t\t},\n\t\tonLeaveReference() {\n\t\t\tfns.current.onLeaveReference?.();\n\t\t}\n\t}));\n\treturn /* @__PURE__ */ jsx(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ jsx(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nconst checkFloating = void 0;\nconst setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction getSideAndAlignFromPlacement(placement) {\n\tconst [side, align = \"center\"] = placement.split(\"-\");\n\treturn [side, align];\n}\nconst transformOriginMiddleware = (options) => ({\n\tname: \"transformOrigin\",\n\toptions,\n\tfn(data) {\n\t\tconst { placement, rects, middlewareData } = data;\n\t\tconst isArrowHidden = middlewareData.arrow?.centerOffset !== 0;\n\t\tconst arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n\t\tconst arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n\t\tconst [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n\t\tconst noArrowAlign = {\n\t\t\tstart: \"0%\",\n\t\t\tcenter: \"50%\",\n\t\t\tend: \"100%\"\n\t\t}[placedAlign];\n\t\tconst arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n\t\tconst arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n\t\tlet x = \"\";\n\t\tlet y = \"\";\n\t\tif (placedSide === \"bottom\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${-arrowHeight}px`;\n\t\t} else if (placedSide === \"top\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${rects.floating.height + arrowHeight}px`;\n\t\t} else if (placedSide === \"right\") {\n\t\t\tx = `${-arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t} else if (placedSide === \"left\") {\n\t\t\tx = `${rects.floating.width + arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t}\n\t\treturn { data: {\n\t\t\tx,\n\t\t\ty\n\t\t} };\n\t}\n});\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tlet rafId = requestAnimationFrame(() => {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tconst cleanups = [() => {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (reference instanceof HTMLElement) cleanups.push(registerLayoutNode(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tlet lastWidth = -1;\n\t\tlet lastHeight = -1;\n\t\tconst ro = new ResizeObserver((entries) => {\n\t\t\tconst entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tconst { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(() => ro.disconnect());\n\t}\n\tconst ancestors = [...reference instanceof Element ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)];\n\tconst uniqueAncestors = [...new Set(ancestors)];\n\tfor (const ancestor of uniqueAncestors) ancestor.addEventListener(\"scroll\", update, { passive: true });\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(() => {\n\t\tfor (const ancestor of uniqueAncestors) ancestor.removeEventListener(\"scroll\", update);\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn () => cleanups.forEach((fn) => fn());\n}\nfunction Popper(props) {\n\tconst { children, size: size$1, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset: offset$1, disableRTL, resize, passThrough, open, scope } = props;\n\tconst [arrowEl, setArrow] = React.useState(null);\n\tconst [arrowSize, setArrowSize] = React.useState(0);\n\tconst offsetOptions = offset$1 ?? arrowSize;\n\tconst floatingStyle = React.useRef({});\n\tconst isOpen = passThrough ? false : open ?? true;\n\tconst middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? offset(offsetOptions) : null,\n\t\tallowFlip ? flip(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? shift({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...typeof stayInFrame === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? arrow({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tresize ? size({\n\t\t\tpadding: typeof stayInFrame === \"object\" ? stayInFrame.padding : 10,\n\t\t\tapply({ availableHeight, availableWidth }) {\n\t\t\t\tif (passThrough) return;\n\t\t\t\tObject.assign(floatingStyle.current, {\n\t\t\t\t\tmaxHeight: `${availableHeight}px`,\n\t\t\t\t\tmaxWidth: `${availableWidth}px`\n\t\t\t\t});\n\t\t\t\tconst floatingChild = floating.refs.floating.current?.firstChild;\n\t\t\t\tif (floatingChild && floatingChild instanceof HTMLElement) Object.assign(floatingChild.style, floatingStyle.current);\n\t\t\t},\n\t\t\t...typeof resize === \"object\" && resize\n\t\t}) : null,\n\t\tsize({ apply({ elements, rects, availableWidth, availableHeight }) {\n\t\t\tconst { width: anchorWidth, height: anchorHeight } = rects.reference;\n\t\t\tconst contentStyle = elements.floating.style;\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-width\", `${availableWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-height\", `${availableHeight}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-width\", `${anchorWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-height\", `${anchorHeight}px`);\n\t\t} }),\n\t\ttransformOriginMiddleware({\n\t\t\tarrowHeight: arrowSize,\n\t\t\tarrowWidth: arrowSize\n\t\t})\n\t].filter(Boolean);\n\tlet floating = useFloating({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: disableRTL ?? setupOptions.disableRTL ? {\n\t\t\t...platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tfloating = React.useMemo(() => {\n\t\tconst og = floating.getFloatingProps;\n\t\tif (resize && og) floating.getFloatingProps = (props2) => {\n\t\t\treturn og({\n\t\t\t\t...props2,\n\t\t\t\tstyle: {\n\t\t\t\t\t...props2.style,\n\t\t\t\t\t...floatingStyle.current\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\treturn floating;\n\t}, [floating, resize ? JSON.stringify(resize) : null]);\n\tconst { middlewareData } = floating;\n\treturn /* @__PURE__ */ jsx(PopperProvider, {\n\t\tscope,\n\t\t...React.useMemo(() => {\n\t\t\treturn {\n\t\t\t\tsize: size$1,\n\t\t\t\tarrowRef: setArrow,\n\t\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\t\tonArrowSize: setArrowSize,\n\t\t\t\thasFloating: middlewareData.checkFloating?.hasFloating,\n\t\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\t\topen: !!open,\n\t\t\t\t...floating\n\t\t\t};\n\t\t}, [\n\t\t\topen,\n\t\t\tsize$1,\n\t\t\tfloating,\n\t\t\tJSON.stringify(middlewareData.arrow || null),\n\t\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t\t]),\n\t\tchildren: /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nconst PopperAnchor = createStyledHOC(View, function PopperAnchor2(props, forwardedRef) {\n\tconst { virtualRef, scope, ...rest } = props;\n\tconst context = usePopperContextSlow(scope);\n\tconst { getReferenceProps, refs, update } = context;\n\tconst ref = React.useRef(null);\n\tconst triggerId = React.useId();\n\tReact.useEffect(() => {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!(ref.current instanceof Element)) return;\n\t\tconst el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn () => {\n\t\t\tcontext.triggerElements?.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(() => {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tconst refProps = getReferenceProps?.({\n\t\t...rest,\n\t\tref\n\t}) || null;\n\tconst safeSetReference = React.useCallback((node) => {\n\t\tstartTransition(() => {\n\t\t\trefs.setReference(node);\n\t\t});\n\t}, [refs]);\n\tconst shouldHandleInHover = isWeb && scope;\n\tconst composedRefs = useComposedRefs(forwardedRef, ref, shouldHandleInHover ? void 0 : safeSetReference);\n\treturn /* @__PURE__ */ jsx(View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: (e) => {\n\t\t\t\tconst el = e.currentTarget ?? ref.current;\n\t\t\t\tif (el instanceof HTMLElement) {\n\t\t\t\t\tflushSync(() => refs.setReference(el));\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\trefProps.onPointerEnter?.(e);\n\t\t\t\t\tcontext.onHoverReference?.(e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: (e) => {\n\t\t\t\tcontext.onLeaveReference?.();\n\t\t\t\trefProps?.onMouseLeave?.(e);\n\t\t\t}\n\t\t}\n\t});\n});\nconst PopperContentFrame = styled(View, { displayName: \"PopperContent\" });\nconst PopperContent = createRefComponent(function PopperContent2(props, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in props;\n\tconst { scope, animatePosition, children, passThrough, ...rest } = props;\n\tconst animatePos = animatePosition;\n\tconst context = usePopperContext(scope);\n\tconst { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tconst updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tconst lastNodeRef = React.useRef(null);\n\tconst safeSetFloating = React.useCallback((node) => {\n\t\tconst isNewNode = node !== lastNodeRef.current;\n\t\tif (node) {\n\t\t\tlastNodeRef.current = node;\n\t\t\trefs.setFloating(node);\n\t\t\tif (!isNewNode) updateRef.current?.();\n\t\t}\n\t}, [refs.setFloating]);\n\tReact.useEffect(() => {\n\t\treturn () => {\n\t\t\tconst ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tconst contentRefs = useComposedRefs(safeSetFloating, forwardedRef);\n\tconst [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\tuseIsomorphicLayoutEffect(() => {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tconst hasBeenPositioned = React.useRef(false);\n\tconst lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tconst brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tconst effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tconst effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tconst hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tconst disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tconst [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(() => {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tconst frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : {\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t},\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tconst { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tconst transformOriginStyle = isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ jsx(LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ jsx(View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ jsx(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nconst PopperArrowFrame = styled(View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nconst PopperArrowOuterFrame = styled(View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nconst opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nconst PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tconst { scope, animatePosition, transition, ...rest } = propsIn;\n\tconst { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tconst context = usePopperContext(scope);\n\tconst sizeVal = typeof sizeProp === \"number\" ? sizeProp : getVariableValue(getSize(sizeProp ?? context.size)) * .52 - 11.5;\n\tconst size = Math.max(0, +sizeVal);\n\tconst { placement } = context;\n\tconst refs = useComposedRefs(context.arrowRef, forwardedRef);\n\tconst x = context.arrowStyle?.x || 0;\n\tconst y = context.arrowStyle?.y || 0;\n\tconst arrowPositioned = context.arrowStyle != null;\n\tconst primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tconst arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tconst innerArrowStyle = {};\n\tconst isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tconst oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tcontext.onArrowSize?.(size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ jsx(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n\nexport { Popper, PopperAnchor, PopperArrow, PopperArrowFrame, PopperContent, PopperContentFrame, PopperContextFast, PopperContextSlow, PopperPositionContext, PopperProvider, PopperProviderFast, PopperProviderSlow, setupPopper, usePopperContext, usePopperContextSlow };"],"mappings":";;;;;;;;;;;AAUA,MAAM,oBAAoB,oBAAoB,CAAC,GAAG,UAAU;AAC5D,MAAM,wBAAwB;AAC9B,MAAM,EAAE,kBAAkB,kBAAkB,UAAU,uBAAuB;AAC7E,MAAM,oBAAoB,oBAAoB,CAAC,GAAG,cAAc;AAChE,MAAM,EAAE,kBAAkB,sBAAsB,UAAU,uBAAuB;AACjF,MAAM,kBAAkB,EAAE,OAAO,UAAU,GAAG,cAAc;CAC3D,MAAM,MAAM,MAAM,OAAO,OAAO;CAChC,IAAI,UAAU;CACd,MAAM,CAAC,eAAe,MAAM,gBAAgB;EAC3C,MAAM,QAAQ;EACd,iBAAiB,QAAQ;EACzB,OAAO,GAAG,GAAG;GACZ,IAAI,QAAQ,OAAO,GAAG,CAAC;EACxB;EACA,kBAAkB,GAAG;GACpB,OAAO,IAAI,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,YAAY,SAAS,YAAY,UAAU,WAAW,OAAO;EACjE,IAAI,YAAY,UAAU,YAAY,SAAS,WAAW,MAAM;EAChE,gCAAgC;GAC/B,QAAQ,cAAc,IAAI;EAC3B,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;CAC/B;CACA,OAAuB,oBAAI,uBAAuB;EACjD,KAAK;EACL,GAAG;EACH,GAAG,CAAC,mBAAmB,EAAE,SAAS,EAAE;EACpC,GAAG,0BAA0B;GAC5B,YAAY,kBAAkB,aAAa,KAAK;GAChD,aAAa,kBAAkB,CAAC,WAAW,IAAI,CAAC;GAChD,iBAAiB;EAClB;EACA,UAA0B,oBAAI,kBAAkB;GAC/C,OAAO;GACP,QAAQ;GACR,GAAG;GACH,GAAG;GACH,QAAQ;GACR,GAAG,qBAAqB,YAAY;IACnC,iBAAiB;IACjB,gBAAgB;GACjB;GACA,GAAG,qBAAqB,SAAS;IAChC,mBAAmB;IACnB,kBAAkB;GACnB;GACA,GAAG,qBAAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Popper.js","names":[],"sources":["esm/Popper.js"],"sourcesContent":["import { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createRefComponent, createStyledContext, createStyledHOC, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, size, useFloating } from \"@tamagui/floating\";\nimport { getSize } from \"@tamagui/get-token\";\nimport { startTransition } from \"@tamagui/start-transition\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nconst PopperContextFast = createStyledContext({}, \"Popper__\");\nconst PopperPositionContext = createStyledContext;\nconst { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nconst PopperContextSlow = createStyledContext({}, \"PopperSlow__\");\nconst { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nconst PopperProvider = ({ scope, children, ...context }) => {\n\tconst fns = React.useRef(context);\n\tfns.current = context;\n\tconst [slowContext] = React.useState(() => ({\n\t\trefs: context.refs,\n\t\ttriggerElements: context.triggerElements,\n\t\tupdate(...a) {\n\t\t\tfns.current.update(...a);\n\t\t},\n\t\tgetReferenceProps(p) {\n\t\t\treturn fns.current.getReferenceProps?.(p);\n\t\t},\n\t\tonHoverReference(e) {\n\t\t\tfns.current.onHoverReference?.(e);\n\t\t},\n\t\tonLeaveReference() {\n\t\t\tfns.current.onLeaveReference?.();\n\t\t}\n\t}));\n\treturn /* @__PURE__ */ jsx(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ jsx(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nconst checkFloating = void 0;\nconst setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction getSideAndAlignFromPlacement(placement) {\n\tconst [side, align = \"center\"] = placement.split(\"-\");\n\treturn [side, align];\n}\nconst transformOriginMiddleware = (options) => ({\n\tname: \"transformOrigin\",\n\toptions,\n\tfn(data) {\n\t\tconst { placement, rects, middlewareData } = data;\n\t\tconst isArrowHidden = middlewareData.arrow?.centerOffset !== 0;\n\t\tconst arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n\t\tconst arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n\t\tconst [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n\t\tconst noArrowAlign = {\n\t\t\tstart: \"0%\",\n\t\t\tcenter: \"50%\",\n\t\t\tend: \"100%\"\n\t\t}[placedAlign];\n\t\tconst arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n\t\tconst arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n\t\tlet x = \"\";\n\t\tlet y = \"\";\n\t\tif (placedSide === \"bottom\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${-arrowHeight}px`;\n\t\t} else if (placedSide === \"top\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${rects.floating.height + arrowHeight}px`;\n\t\t} else if (placedSide === \"right\") {\n\t\t\tx = `${-arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t} else if (placedSide === \"left\") {\n\t\t\tx = `${rects.floating.width + arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t}\n\t\treturn { data: {\n\t\t\tx,\n\t\t\ty\n\t\t} };\n\t}\n});\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tlet rafId = requestAnimationFrame(() => {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tconst cleanups = [() => {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (reference instanceof HTMLElement) cleanups.push(registerLayoutNode(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tlet lastWidth = -1;\n\t\tlet lastHeight = -1;\n\t\tconst ro = new ResizeObserver((entries) => {\n\t\t\tconst entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tconst { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(() => ro.disconnect());\n\t}\n\tconst ancestors = [...reference instanceof Element ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)];\n\tconst uniqueAncestors = [...new Set(ancestors)];\n\tfor (const ancestor of uniqueAncestors) ancestor.addEventListener(\"scroll\", update, { passive: true });\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(() => {\n\t\tfor (const ancestor of uniqueAncestors) ancestor.removeEventListener(\"scroll\", update);\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn () => cleanups.forEach((fn) => fn());\n}\nfunction Popper(props) {\n\tconst { children, size: size$1, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset: offset$1, disableRTL, resize, passThrough, open, scope } = props;\n\tconst [arrowEl, setArrow] = React.useState(null);\n\tconst [arrowSize, setArrowSize] = React.useState(0);\n\tconst offsetOptions = offset$1 ?? arrowSize;\n\tconst floatingStyle = React.useRef({});\n\tconst isOpen = passThrough ? false : open ?? true;\n\tconst middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? offset(offsetOptions) : null,\n\t\tallowFlip ? flip(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? shift({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...typeof stayInFrame === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? arrow({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tresize ? size({\n\t\t\tpadding: typeof stayInFrame === \"object\" ? stayInFrame.padding : 10,\n\t\t\tapply({ availableHeight, availableWidth }) {\n\t\t\t\tif (passThrough) return;\n\t\t\t\tObject.assign(floatingStyle.current, {\n\t\t\t\t\tmaxHeight: `${availableHeight}px`,\n\t\t\t\t\tmaxWidth: `${availableWidth}px`\n\t\t\t\t});\n\t\t\t\tconst floatingChild = floating.refs.floating.current?.firstChild;\n\t\t\t\tif (floatingChild && floatingChild instanceof HTMLElement) Object.assign(floatingChild.style, floatingStyle.current);\n\t\t\t},\n\t\t\t...typeof resize === \"object\" && resize\n\t\t}) : null,\n\t\tsize({ apply({ elements, rects, availableWidth, availableHeight }) {\n\t\t\tconst { width: anchorWidth, height: anchorHeight } = rects.reference;\n\t\t\tconst contentStyle = elements.floating.style;\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-width\", `${availableWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-height\", `${availableHeight}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-width\", `${anchorWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-height\", `${anchorHeight}px`);\n\t\t} }),\n\t\ttransformOriginMiddleware({\n\t\t\tarrowHeight: arrowSize,\n\t\t\tarrowWidth: arrowSize\n\t\t})\n\t].filter(Boolean);\n\tlet floating = useFloating({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: disableRTL ?? setupOptions.disableRTL ? {\n\t\t\t...platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tfloating = React.useMemo(() => {\n\t\tconst og = floating.getFloatingProps;\n\t\tif (resize && og) floating.getFloatingProps = (props2) => {\n\t\t\treturn og({\n\t\t\t\t...props2,\n\t\t\t\tstyle: {\n\t\t\t\t\t...props2.style,\n\t\t\t\t\t...floatingStyle.current\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\treturn floating;\n\t}, [floating, resize ? JSON.stringify(resize) : null]);\n\tconst { middlewareData } = floating;\n\treturn /* @__PURE__ */ jsx(PopperProvider, {\n\t\tscope,\n\t\t...React.useMemo(() => {\n\t\t\treturn {\n\t\t\t\tsize: size$1,\n\t\t\t\tarrowRef: setArrow,\n\t\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\t\tonArrowSize: setArrowSize,\n\t\t\t\thasFloating: middlewareData.checkFloating?.hasFloating,\n\t\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\t\topen: !!open,\n\t\t\t\t...floating\n\t\t\t};\n\t\t}, [\n\t\t\topen,\n\t\t\tsize$1,\n\t\t\tfloating,\n\t\t\tJSON.stringify(middlewareData.arrow || null),\n\t\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t\t]),\n\t\tchildren: /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nconst PopperAnchor = createStyledHOC(View, function PopperAnchor2(props, forwardedRef) {\n\tconst { virtualRef, scope, ...rest } = props;\n\tconst context = usePopperContextSlow(scope);\n\tconst { getReferenceProps, refs, update } = context;\n\tconst ref = React.useRef(null);\n\tconst triggerId = React.useId();\n\tReact.useEffect(() => {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!(ref.current instanceof Element)) return;\n\t\tconst el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn () => {\n\t\t\tcontext.triggerElements?.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(() => {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tconst refProps = getReferenceProps?.({\n\t\t...rest,\n\t\tref\n\t}) || null;\n\tconst safeSetReference = React.useCallback((node) => {\n\t\tstartTransition(() => {\n\t\t\trefs.setReference(node);\n\t\t});\n\t}, [refs]);\n\tconst shouldHandleInHover = isWeb && scope;\n\tconst composedRefs = useComposedRefs(forwardedRef, ref, shouldHandleInHover ? void 0 : safeSetReference);\n\treturn /* @__PURE__ */ jsx(View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: (e) => {\n\t\t\t\tconst el = e.currentTarget ?? ref.current;\n\t\t\t\tif (el instanceof HTMLElement) {\n\t\t\t\t\tflushSync(() => refs.setReference(el));\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\trefProps.onPointerEnter?.(e);\n\t\t\t\t\tcontext.onHoverReference?.(e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: (e) => {\n\t\t\t\tcontext.onLeaveReference?.();\n\t\t\t\trefProps?.onMouseLeave?.(e);\n\t\t\t}\n\t\t}\n\t});\n});\nconst PopperContentFrame = styled(View, { displayName: \"PopperContent\" });\nconst PopperContent = createRefComponent(function PopperContent2(props, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in props;\n\tconst { scope, animatePosition, children, passThrough, ...rest } = props;\n\tconst animatePos = animatePosition;\n\tconst context = usePopperContext(scope);\n\tconst { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tconst updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tconst lastNodeRef = React.useRef(null);\n\tconst safeSetFloating = React.useCallback((node) => {\n\t\tconst isNewNode = node !== lastNodeRef.current;\n\t\tif (node) {\n\t\t\tlastNodeRef.current = node;\n\t\t\trefs.setFloating(node);\n\t\t\tif (!isNewNode) updateRef.current?.();\n\t\t}\n\t}, [refs.setFloating]);\n\tReact.useEffect(() => {\n\t\treturn () => {\n\t\t\tconst ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tconst contentRefs = useComposedRefs(safeSetFloating, forwardedRef);\n\tconst [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\tuseIsomorphicLayoutEffect(() => {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tconst hasBeenPositioned = React.useRef(false);\n\tconst lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tconst brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tconst effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tconst effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tconst hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tconst disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tconst [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(() => {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tconst frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : {\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t},\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tconst { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tconst transformOriginStyle = isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ jsx(LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ jsx(View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ jsx(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nconst PopperArrowFrame = styled(View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nconst PopperArrowOuterFrame = styled(View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nconst opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nconst PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tconst { scope, animatePosition, transition, ...rest } = propsIn;\n\tconst { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tconst context = usePopperContext(scope);\n\tconst sizeVal = typeof sizeProp === \"number\" ? sizeProp : getVariableValue(getSize(sizeProp ?? context.size ?? true)) * .52 - 11.5;\n\tconst size = Math.max(0, +sizeVal);\n\tconst { placement } = context;\n\tconst refs = useComposedRefs(context.arrowRef, forwardedRef);\n\tconst x = context.arrowStyle?.x || 0;\n\tconst y = context.arrowStyle?.y || 0;\n\tconst arrowPositioned = context.arrowStyle != null;\n\tconst primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tconst arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tconst innerArrowStyle = {};\n\tconst isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tconst oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tcontext.onArrowSize?.(size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ jsx(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n\nexport { Popper, PopperAnchor, PopperArrow, PopperArrowFrame, PopperContent, PopperContentFrame, PopperContextFast, PopperContextSlow, PopperPositionContext, PopperProvider, PopperProviderFast, PopperProviderSlow, setupPopper, usePopperContext, usePopperContextSlow };"],"mappings":";;;;;;;;;;;AAUA,MAAM,oBAAoB,oBAAoB,CAAC,GAAG,UAAU;AAC5D,MAAM,wBAAwB;AAC9B,MAAM,EAAE,kBAAkB,kBAAkB,UAAU,uBAAuB;AAC7E,MAAM,oBAAoB,oBAAoB,CAAC,GAAG,cAAc;AAChE,MAAM,EAAE,kBAAkB,sBAAsB,UAAU,uBAAuB;AACjF,MAAM,kBAAkB,EAAE,OAAO,UAAU,GAAG,cAAc;CAC3D,MAAM,MAAM,MAAM,OAAO,OAAO;CAChC,IAAI,UAAU;CACd,MAAM,CAAC,eAAe,MAAM,gBAAgB;EAC3C,MAAM,QAAQ;EACd,iBAAiB,QAAQ;EACzB,OAAO,GAAG,GAAG;GACZ,IAAI,QAAQ,OAAO,GAAG,CAAC;EACxB;EACA,kBAAkB,GAAG;GACpB,OAAO,IAAI,QAAQ,oBAAoB,CAAC;EACzC;EACA,iBAAiB,GAAG;GACnB,IAAI,QAAQ,mBAAmB,CAAC;EACjC;EACA,mBAAmB;GAClB,IAAI,QAAQ,mBAAmB;EAChC;CACD,EAAE;CACF,OAAuB,oBAAI,oBAAoB;EAC9C;EACA,GAAG;EACH,UAA0B,oBAAI,oBAAoB;GACjD;GACA,GAAG;GACH;EACD,CAAC;CACF,CAAC;AACF;AACA,MAAM,gBAAgB,KAAK;AAC3B,MAAM,eAAe,CAAC;AACtB,SAAS,YAAY,SAAS;CAC7B,OAAO,OAAO,cAAc,OAAO;AACpC;AACA,SAAS,6BAA6B,WAAW;CAChD,MAAM,CAAC,MAAM,QAAQ,YAAY,UAAU,MAAM,GAAG;CACpD,OAAO,CAAC,MAAM,KAAK;AACpB;AACA,MAAM,6BAA6B,aAAa;CAC/C,MAAM;CACN;CACA,GAAG,MAAM;EACR,MAAM,EAAE,WAAW,OAAO,mBAAmB;EAC7C,MAAM,gBAAgB,eAAe,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AAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
|
|
@@ -418,7 +418,8 @@ var PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedRef
|
|
|
418
418
|
var { scope, animatePosition, transition, ...rest } = propsIn;
|
|
419
419
|
var { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;
|
|
420
420
|
var context = usePopperContext(scope);
|
|
421
|
-
var
|
|
421
|
+
var _ref;
|
|
422
|
+
var sizeVal = typeof sizeProp === "number" ? sizeProp : getVariableValue(getSize((_ref = sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size) !== null && _ref !== void 0 ? _ref : true)) * .52 - 11.5;
|
|
422
423
|
var size = Math.max(0, +sizeVal);
|
|
423
424
|
var { placement } = context;
|
|
424
425
|
var refs = useComposedRefs(context.arrowRef, forwardedRef);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.native.js","names":[],"sources":["esm/Popper.native.js"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nimport { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createRefComponent, createStyledContext, createStyledHOC, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, useFloating } from \"@tamagui/floating\";\nimport { getSize } from \"@tamagui/get-token\";\nimport { startTransition } from \"@tamagui/start-transition\";\nimport * as React from \"react\";\nimport { Keyboard, useWindowDimensions } from \"react-native\";\n\nfunction _instanceof(left, right) {\n\tif (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) return !!right[Symbol.hasInstance](left);\n\telse return left instanceof right;\n}\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar PopperContextFast = createStyledContext({}, \"Popper__\");\nvar PopperPositionContext = createStyledContext;\nvar { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nvar PopperContextSlow = createStyledContext({}, \"PopperSlow__\");\nvar { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nvar PopperProvider = function(param) {\n\tvar { scope, children, ...context } = param;\n\tvar fns = React.useRef(context);\n\tfns.current = context;\n\tvar [slowContext] = React.useState(function() {\n\t\treturn {\n\t\t\trefs: context.refs,\n\t\t\ttriggerElements: context.triggerElements,\n\t\t\tupdate() {\n\t\t\t\tfor (var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++) a[_key] = arguments[_key];\n\t\t\t\tfns.current.update(...a);\n\t\t\t},\n\t\t\tgetReferenceProps(p) {\n\t\t\t\tvar _fns_current_getReferenceProps, _fns_current;\n\t\t\t\treturn (_fns_current_getReferenceProps = (_fns_current = fns.current).getReferenceProps) === null || _fns_current_getReferenceProps === void 0 ? void 0 : _fns_current_getReferenceProps.call(_fns_current, p);\n\t\t\t},\n\t\t\tonHoverReference(e) {\n\t\t\t\tvar _fns_current_onHoverReference, _fns_current;\n\t\t\t\t(_fns_current_onHoverReference = (_fns_current = fns.current).onHoverReference) === null || _fns_current_onHoverReference === void 0 || _fns_current_onHoverReference.call(_fns_current, e);\n\t\t\t},\n\t\t\tonLeaveReference() {\n\t\t\t\tvar _fns_current_onLeaveReference, _fns_current;\n\t\t\t\t(_fns_current_onLeaveReference = (_fns_current = fns.current).onLeaveReference) === null || _fns_current_onLeaveReference === void 0 || _fns_current_onLeaveReference.call(_fns_current);\n\t\t\t}\n\t\t};\n\t});\n\treturn /* @__PURE__ */ jsx(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ jsx(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nvar checkFloating = {\n\tname: \"checkFloating\",\n\tfn(data) {\n\t\treturn { data: { hasFloating: !!data.rects.floating.width } };\n\t}\n};\nvar setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tvar rafId = requestAnimationFrame(function() {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tvar cleanups = [function() {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (_instanceof(reference, HTMLElement)) cleanups.push(registerLayoutNode(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tvar lastWidth = -1;\n\t\tvar lastHeight = -1;\n\t\tvar ro = new ResizeObserver(function(entries) {\n\t\t\tvar entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tvar { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(function() {\n\t\t\treturn ro.disconnect();\n\t\t});\n\t}\n\tvar ancestors = [..._instanceof(reference, Element) ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)];\n\tvar uniqueAncestors = [...new Set(ancestors)];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = uniqueAncestors[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.addEventListener(\"scroll\", update, { passive: true });\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(function() {\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = uniqueAncestors[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) _step2.value.removeEventListener(\"scroll\", update);\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn function() {\n\t\treturn cleanups.forEach(function(fn) {\n\t\t\treturn fn();\n\t\t});\n\t};\n}\nfunction Popper(props) {\n\tvar { children, size, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset: offset$1, disableRTL, resize, passThrough, open, scope } = props;\n\tvar [arrowEl, setArrow] = React.useState(null);\n\tvar [arrowSize, setArrowSize] = React.useState(0);\n\tvar offsetOptions = offset$1 !== null && offset$1 !== void 0 ? offset$1 : arrowSize;\n\tReact.useRef({});\n\tvar isOpen = passThrough ? false : open !== null && open !== void 0 ? open : true;\n\tvar middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? offset(offsetOptions) : null,\n\t\tallowFlip ? flip(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? shift({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...(typeof stayInFrame === \"undefined\" ? \"undefined\" : _type_of(stayInFrame)) === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? arrow({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tnull,\n\t\tnull,\n\t\tnull\n\t].filter(Boolean);\n\tvar floating = useFloating({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: (disableRTL !== null && disableRTL !== void 0 ? disableRTL : setupOptions.disableRTL) ? {\n\t\t\t...platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tvar { middlewareData } = floating;\n\tvar dimensions = useWindowDimensions();\n\tvar [keyboardOpen, setKeyboardOpen] = React.useState(false);\n\tReact.useEffect(function() {\n\t\tvar showSubscription = Keyboard.addListener(\"keyboardDidShow\", function() {\n\t\t\tstartTransition(function() {\n\t\t\t\tsetKeyboardOpen(true);\n\t\t\t});\n\t\t});\n\t\tvar hideSubscription = Keyboard.addListener(\"keyboardDidHide\", function() {\n\t\t\tstartTransition(function() {\n\t\t\t\tsetKeyboardOpen(false);\n\t\t\t});\n\t\t});\n\t\treturn function() {\n\t\t\tshowSubscription.remove();\n\t\t\thideSubscription.remove();\n\t\t};\n\t}, []);\n\tuseIsomorphicLayoutEffect(function() {\n\t\tif (passThrough) return;\n\t\tfloating.update();\n\t}, [\n\t\tpassThrough,\n\t\tdimensions,\n\t\tkeyboardOpen\n\t]);\n\treturn /* @__PURE__ */ jsx(PopperProvider, {\n\t\tscope,\n\t\t...React.useMemo(function() {\n\t\t\tvar _middlewareData_checkFloating;\n\t\t\treturn {\n\t\t\t\tsize,\n\t\t\t\tarrowRef: setArrow,\n\t\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\t\tonArrowSize: setArrowSize,\n\t\t\t\thasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,\n\t\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\t\topen: !!open,\n\t\t\t\t...floating\n\t\t\t};\n\t\t}, [\n\t\t\topen,\n\t\t\tsize,\n\t\t\tfloating,\n\t\t\tJSON.stringify(middlewareData.arrow || null),\n\t\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t\t]),\n\t\tchildren: /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nvar PopperAnchor = createStyledHOC(View, function PopperAnchor2(props, forwardedRef) {\n\tvar { virtualRef, scope, ...rest } = props;\n\tvar context = usePopperContextSlow(scope);\n\tvar { getReferenceProps, refs, update } = context;\n\tvar ref = React.useRef(null);\n\tvar triggerId = React.useId();\n\tReact.useEffect(function() {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!_instanceof(ref.current, Element)) return;\n\t\tvar el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn function() {\n\t\t\tvar _context_triggerElements;\n\t\t\t(_context_triggerElements = context.triggerElements) === null || _context_triggerElements === void 0 || _context_triggerElements.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(function() {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tvar refProps = (getReferenceProps === null || getReferenceProps === void 0 ? void 0 : getReferenceProps({\n\t\t...rest,\n\t\tref\n\t})) || null;\n\tvar safeSetReference = React.useCallback(function(node) {\n\t\tstartTransition(function() {\n\t\t\trefs.setReference(node);\n\t\t});\n\t}, [refs]);\n\tvar shouldHandleInHover = isWeb && scope;\n\tvar composedRefs = useComposedRefs(forwardedRef, ref, shouldHandleInHover ? void 0 : safeSetReference);\n\treturn /* @__PURE__ */ jsx(View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: function(e) {\n\t\t\t\tvar _e_currentTarget;\n\t\t\t\tvar el = (_e_currentTarget = e.currentTarget) !== null && _e_currentTarget !== void 0 ? _e_currentTarget : ref.current;\n\t\t\t\tif (_instanceof(el, HTMLElement)) {\n\t\t\t\t\tvar _refProps_onPointerEnter, _context_onHoverReference;\n\t\t\t\t\tflushSync(function() {\n\t\t\t\t\t\treturn refs.setReference(el);\n\t\t\t\t\t});\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\t(_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e);\n\t\t\t\t\t(_context_onHoverReference = context.onHoverReference) === null || _context_onHoverReference === void 0 || _context_onHoverReference.call(context, e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: function(e) {\n\t\t\t\tvar _context_onLeaveReference, _refProps_onMouseLeave;\n\t\t\t\t(_context_onLeaveReference = context.onLeaveReference) === null || _context_onLeaveReference === void 0 || _context_onLeaveReference.call(context);\n\t\t\t\trefProps === null || refProps === void 0 || (_refProps_onMouseLeave = refProps.onMouseLeave) == null || _refProps_onMouseLeave.call(refProps, e);\n\t\t\t}\n\t\t}\n\t});\n});\nvar PopperContentFrame = styled(View, { displayName: \"PopperContent\" });\nvar PopperContent = createRefComponent(function PopperContent2(props, forwardedRef) {\n\tvar isAnimatePosControlled = \"animatePosition\" in props;\n\tvar { scope, animatePosition, children, passThrough, ...rest } = props;\n\tvar animatePos = animatePosition;\n\tvar context = usePopperContext(scope);\n\tvar { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tvar updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tvar lastNodeRef = React.useRef(null);\n\tvar safeSetFloating = React.useCallback(function(node) {\n\t\tvar isNewNode = node !== lastNodeRef.current;\n\t\tif (node) {\n\t\t\tlastNodeRef.current = node;\n\t\t\trefs.setFloating(node);\n\t\t\tif (!isNewNode) {\n\t\t\t\tvar _updateRef_current;\n\t\t\t\t(_updateRef_current = updateRef.current) === null || _updateRef_current === void 0 || _updateRef_current.call(updateRef);\n\t\t\t}\n\t\t}\n\t}, [refs.setFloating]);\n\tReact.useEffect(function() {\n\t\treturn function() {\n\t\t\tvar ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tvar contentRefs = useComposedRefs(safeSetFloating, forwardedRef);\n\tvar [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\tuseIsomorphicLayoutEffect(function() {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tvar hasBeenPositioned = React.useRef(false);\n\tvar lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tvar brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tvar effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tvar effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tvar hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tvar disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tvar [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(function() {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tvar frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : {\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t},\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tvar { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tvar transformOriginStyle = isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ jsx(LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ jsx(View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ jsx(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nvar PopperArrowFrame = styled(View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nvar PopperArrowOuterFrame = styled(View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nvar opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nvar PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedRef) {\n\tvar _context_arrowStyle, _context_arrowStyle1;\n\tvar isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tvar { scope, animatePosition, transition, ...rest } = propsIn;\n\tvar { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tvar context = usePopperContext(scope);\n\tvar sizeVal = typeof sizeProp === \"number\" ? sizeProp : getVariableValue(getSize(sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size)) * .52 - 11.5;\n\tvar size = Math.max(0, +sizeVal);\n\tvar { placement } = context;\n\tvar refs = useComposedRefs(context.arrowRef, forwardedRef);\n\tvar x = ((_context_arrowStyle = context.arrowStyle) === null || _context_arrowStyle === void 0 ? void 0 : _context_arrowStyle.x) || 0;\n\tvar y = ((_context_arrowStyle1 = context.arrowStyle) === null || _context_arrowStyle1 === void 0 ? void 0 : _context_arrowStyle1.y) || 0;\n\tvar arrowPositioned = context.arrowStyle != null;\n\tvar primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tvar arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tvar innerArrowStyle = {};\n\tvar isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tvar oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\tuseIsomorphicLayoutEffect(function() {\n\t\t\tvar _context_onArrowSize;\n\t\t\t(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ jsx(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n\nexport { Popper, PopperAnchor, PopperArrow, PopperArrowFrame, PopperContent, PopperContentFrame, PopperContextFast, PopperContextSlow, PopperPositionContext, PopperProvider, PopperProviderFast, PopperProviderSlow, setupPopper, usePopperContext, usePopperContextSlow };"],"mappings":";;;;;;;;;;;;AAWA,SAAS,YAAY,MAAM,OAAO;CACjC,IAAI,SAAS,QAAQ,OAAO,WAAW,eAAe,MAAM,OAAO,cAAc,OAAO,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,IAAI;MACnH,OAAO,gBAAgB;AAC7B;AACA,SAAS,SAAS,KAAK;CACtB;CACA,OAAO,OAAO,OAAO,WAAW,eAAe,IAAI,gBAAgB,SAAS,WAAW,OAAO;AAC/F;AACA,IAAI,oBAAoB,oBAAoB,CA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gB,WAAW,OAAO;EACnC;EACA,IAAI,YAAY,SAAS,YAAY,UAAU,WAAW,OAAO;EACjE,IAAI,YAAY,UAAU,YAAY,SAAS,WAAW,MAAM;EAChE,0BAA0B,WAAW;GACpC,IAAI;GACJ,CAAC,uBAAuB,QAAQ,iBAAiB,QAAQ,yBAAyB,KAAK,KAAK,qBAAqB,KAAK,SAAS,IAAI;EACpI,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;CAC/B;CACA,OAAuB,oBAAI,uBAAuB;EACjD,KAAK;EACL,GAAG;EACH,GAAG,CAAC,mBAAmB,EAAE,SAAS,EAAE;EACpC,GAAG,0BAA0B;GAC5B,YAAY,kBAAkB,aAAa,KAAK;GAChD,aAAa,kBAAkB,CAAC,WAAW,IAAI,CAAC;GAChD,iBAAiB;EAClB;EACA,UAA0B,oBAAI,kBAAkB;GAC/C,OAAO;GACP,QAAQ;GACR,GAAG;GACH,GAAG;GACH,QAAQ;GACR,GAAG,qBAAqB,YAAY;IACnC,iBAAiB;IACjB,gBAAgB;GACjB;GACA,GAAG,qBAAqB,SAAS;IAChC,mBAAmB;IACnB,kBAAkB;GACnB;GACA,GAAG,qBAAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Popper.native.js","names":[],"sources":["esm/Popper.native.js"],"sourcesContent":["import { jsx } from \"react/jsx-runtime\";\nimport { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createRefComponent, createStyledContext, createStyledHOC, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, useFloating } from \"@tamagui/floating\";\nimport { getSize } from \"@tamagui/get-token\";\nimport { startTransition } from \"@tamagui/start-transition\";\nimport * as React from \"react\";\nimport { Keyboard, useWindowDimensions } from \"react-native\";\n\nfunction _instanceof(left, right) {\n\tif (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) return !!right[Symbol.hasInstance](left);\n\telse return left instanceof right;\n}\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar PopperContextFast = createStyledContext({}, \"Popper__\");\nvar PopperPositionContext = createStyledContext;\nvar { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nvar PopperContextSlow = createStyledContext({}, \"PopperSlow__\");\nvar { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nvar PopperProvider = function(param) {\n\tvar { scope, children, ...context } = param;\n\tvar fns = React.useRef(context);\n\tfns.current = context;\n\tvar [slowContext] = React.useState(function() {\n\t\treturn {\n\t\t\trefs: context.refs,\n\t\t\ttriggerElements: context.triggerElements,\n\t\t\tupdate() {\n\t\t\t\tfor (var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++) a[_key] = arguments[_key];\n\t\t\t\tfns.current.update(...a);\n\t\t\t},\n\t\t\tgetReferenceProps(p) {\n\t\t\t\tvar _fns_current_getReferenceProps, _fns_current;\n\t\t\t\treturn (_fns_current_getReferenceProps = (_fns_current = fns.current).getReferenceProps) === null || _fns_current_getReferenceProps === void 0 ? void 0 : _fns_current_getReferenceProps.call(_fns_current, p);\n\t\t\t},\n\t\t\tonHoverReference(e) {\n\t\t\t\tvar _fns_current_onHoverReference, _fns_current;\n\t\t\t\t(_fns_current_onHoverReference = (_fns_current = fns.current).onHoverReference) === null || _fns_current_onHoverReference === void 0 || _fns_current_onHoverReference.call(_fns_current, e);\n\t\t\t},\n\t\t\tonLeaveReference() {\n\t\t\t\tvar _fns_current_onLeaveReference, _fns_current;\n\t\t\t\t(_fns_current_onLeaveReference = (_fns_current = fns.current).onLeaveReference) === null || _fns_current_onLeaveReference === void 0 || _fns_current_onLeaveReference.call(_fns_current);\n\t\t\t}\n\t\t};\n\t});\n\treturn /* @__PURE__ */ jsx(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ jsx(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nvar checkFloating = {\n\tname: \"checkFloating\",\n\tfn(data) {\n\t\treturn { data: { hasFloating: !!data.rects.floating.width } };\n\t}\n};\nvar setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tvar rafId = requestAnimationFrame(function() {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tvar cleanups = [function() {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (_instanceof(reference, HTMLElement)) cleanups.push(registerLayoutNode(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tvar lastWidth = -1;\n\t\tvar lastHeight = -1;\n\t\tvar ro = new ResizeObserver(function(entries) {\n\t\t\tvar entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tvar { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(function() {\n\t\t\treturn ro.disconnect();\n\t\t});\n\t}\n\tvar ancestors = [..._instanceof(reference, Element) ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)];\n\tvar uniqueAncestors = [...new Set(ancestors)];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = uniqueAncestors[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.addEventListener(\"scroll\", update, { passive: true });\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(function() {\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = uniqueAncestors[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) _step2.value.removeEventListener(\"scroll\", update);\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn function() {\n\t\treturn cleanups.forEach(function(fn) {\n\t\t\treturn fn();\n\t\t});\n\t};\n}\nfunction Popper(props) {\n\tvar { children, size, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset: offset$1, disableRTL, resize, passThrough, open, scope } = props;\n\tvar [arrowEl, setArrow] = React.useState(null);\n\tvar [arrowSize, setArrowSize] = React.useState(0);\n\tvar offsetOptions = offset$1 !== null && offset$1 !== void 0 ? offset$1 : arrowSize;\n\tReact.useRef({});\n\tvar isOpen = passThrough ? false : open !== null && open !== void 0 ? open : true;\n\tvar middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? offset(offsetOptions) : null,\n\t\tallowFlip ? flip(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? shift({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...(typeof stayInFrame === \"undefined\" ? \"undefined\" : _type_of(stayInFrame)) === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? arrow({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tnull,\n\t\tnull,\n\t\tnull\n\t].filter(Boolean);\n\tvar floating = useFloating({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: (disableRTL !== null && disableRTL !== void 0 ? disableRTL : setupOptions.disableRTL) ? {\n\t\t\t...platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tvar { middlewareData } = floating;\n\tvar dimensions = useWindowDimensions();\n\tvar [keyboardOpen, setKeyboardOpen] = React.useState(false);\n\tReact.useEffect(function() {\n\t\tvar showSubscription = Keyboard.addListener(\"keyboardDidShow\", function() {\n\t\t\tstartTransition(function() {\n\t\t\t\tsetKeyboardOpen(true);\n\t\t\t});\n\t\t});\n\t\tvar hideSubscription = Keyboard.addListener(\"keyboardDidHide\", function() {\n\t\t\tstartTransition(function() {\n\t\t\t\tsetKeyboardOpen(false);\n\t\t\t});\n\t\t});\n\t\treturn function() {\n\t\t\tshowSubscription.remove();\n\t\t\thideSubscription.remove();\n\t\t};\n\t}, []);\n\tuseIsomorphicLayoutEffect(function() {\n\t\tif (passThrough) return;\n\t\tfloating.update();\n\t}, [\n\t\tpassThrough,\n\t\tdimensions,\n\t\tkeyboardOpen\n\t]);\n\treturn /* @__PURE__ */ jsx(PopperProvider, {\n\t\tscope,\n\t\t...React.useMemo(function() {\n\t\t\tvar _middlewareData_checkFloating;\n\t\t\treturn {\n\t\t\t\tsize,\n\t\t\t\tarrowRef: setArrow,\n\t\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\t\tonArrowSize: setArrowSize,\n\t\t\t\thasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,\n\t\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\t\topen: !!open,\n\t\t\t\t...floating\n\t\t\t};\n\t\t}, [\n\t\t\topen,\n\t\t\tsize,\n\t\t\tfloating,\n\t\t\tJSON.stringify(middlewareData.arrow || null),\n\t\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t\t]),\n\t\tchildren: /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nvar PopperAnchor = createStyledHOC(View, function PopperAnchor2(props, forwardedRef) {\n\tvar { virtualRef, scope, ...rest } = props;\n\tvar context = usePopperContextSlow(scope);\n\tvar { getReferenceProps, refs, update } = context;\n\tvar ref = React.useRef(null);\n\tvar triggerId = React.useId();\n\tReact.useEffect(function() {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!_instanceof(ref.current, Element)) return;\n\t\tvar el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn function() {\n\t\t\tvar _context_triggerElements;\n\t\t\t(_context_triggerElements = context.triggerElements) === null || _context_triggerElements === void 0 || _context_triggerElements.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(function() {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tvar refProps = (getReferenceProps === null || getReferenceProps === void 0 ? void 0 : getReferenceProps({\n\t\t...rest,\n\t\tref\n\t})) || null;\n\tvar safeSetReference = React.useCallback(function(node) {\n\t\tstartTransition(function() {\n\t\t\trefs.setReference(node);\n\t\t});\n\t}, [refs]);\n\tvar shouldHandleInHover = isWeb && scope;\n\tvar composedRefs = useComposedRefs(forwardedRef, ref, shouldHandleInHover ? void 0 : safeSetReference);\n\treturn /* @__PURE__ */ jsx(View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: function(e) {\n\t\t\t\tvar _e_currentTarget;\n\t\t\t\tvar el = (_e_currentTarget = e.currentTarget) !== null && _e_currentTarget !== void 0 ? _e_currentTarget : ref.current;\n\t\t\t\tif (_instanceof(el, HTMLElement)) {\n\t\t\t\t\tvar _refProps_onPointerEnter, _context_onHoverReference;\n\t\t\t\t\tflushSync(function() {\n\t\t\t\t\t\treturn refs.setReference(el);\n\t\t\t\t\t});\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\t(_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e);\n\t\t\t\t\t(_context_onHoverReference = context.onHoverReference) === null || _context_onHoverReference === void 0 || _context_onHoverReference.call(context, e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: function(e) {\n\t\t\t\tvar _context_onLeaveReference, _refProps_onMouseLeave;\n\t\t\t\t(_context_onLeaveReference = context.onLeaveReference) === null || _context_onLeaveReference === void 0 || _context_onLeaveReference.call(context);\n\t\t\t\trefProps === null || refProps === void 0 || (_refProps_onMouseLeave = refProps.onMouseLeave) == null || _refProps_onMouseLeave.call(refProps, e);\n\t\t\t}\n\t\t}\n\t});\n});\nvar PopperContentFrame = styled(View, { displayName: \"PopperContent\" });\nvar PopperContent = createRefComponent(function PopperContent2(props, forwardedRef) {\n\tvar isAnimatePosControlled = \"animatePosition\" in props;\n\tvar { scope, animatePosition, children, passThrough, ...rest } = props;\n\tvar animatePos = animatePosition;\n\tvar context = usePopperContext(scope);\n\tvar { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tvar updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tvar lastNodeRef = React.useRef(null);\n\tvar safeSetFloating = React.useCallback(function(node) {\n\t\tvar isNewNode = node !== lastNodeRef.current;\n\t\tif (node) {\n\t\t\tlastNodeRef.current = node;\n\t\t\trefs.setFloating(node);\n\t\t\tif (!isNewNode) {\n\t\t\t\tvar _updateRef_current;\n\t\t\t\t(_updateRef_current = updateRef.current) === null || _updateRef_current === void 0 || _updateRef_current.call(updateRef);\n\t\t\t}\n\t\t}\n\t}, [refs.setFloating]);\n\tReact.useEffect(function() {\n\t\treturn function() {\n\t\t\tvar ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tvar contentRefs = useComposedRefs(safeSetFloating, forwardedRef);\n\tvar [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\tuseIsomorphicLayoutEffect(function() {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tvar hasBeenPositioned = React.useRef(false);\n\tvar lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tvar brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tvar effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tvar effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tvar hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tvar disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tvar [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(function() {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tvar frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : {\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t},\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tvar { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tvar transformOriginStyle = isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ jsx(LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ jsx(View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ jsx(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nvar PopperArrowFrame = styled(View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nvar PopperArrowOuterFrame = styled(View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nvar opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nvar PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedRef) {\n\tvar _context_arrowStyle, _context_arrowStyle1;\n\tvar isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tvar { scope, animatePosition, transition, ...rest } = propsIn;\n\tvar { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tvar context = usePopperContext(scope);\n\tvar _ref;\n\tvar sizeVal = typeof sizeProp === \"number\" ? sizeProp : getVariableValue(getSize((_ref = sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size) !== null && _ref !== void 0 ? _ref : true)) * .52 - 11.5;\n\tvar size = Math.max(0, +sizeVal);\n\tvar { placement } = context;\n\tvar refs = useComposedRefs(context.arrowRef, forwardedRef);\n\tvar x = ((_context_arrowStyle = context.arrowStyle) === null || _context_arrowStyle === void 0 ? void 0 : _context_arrowStyle.x) || 0;\n\tvar y = ((_context_arrowStyle1 = context.arrowStyle) === null || _context_arrowStyle1 === void 0 ? void 0 : _context_arrowStyle1.y) || 0;\n\tvar arrowPositioned = context.arrowStyle != null;\n\tvar primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tvar arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tvar innerArrowStyle = {};\n\tvar isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tvar oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\tuseIsomorphicLayoutEffect(function() {\n\t\t\tvar _context_onArrowSize;\n\t\t\t(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ jsx(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n\nexport { Popper, PopperAnchor, PopperArrow, PopperArrowFrame, PopperContent, PopperContentFrame, PopperContextFast, PopperContextSlow, PopperPositionContext, PopperProvider, PopperProviderFast, PopperProviderSlow, setupPopper, usePopperContext, usePopperContextSlow };"],"mappings":";;;;;;;;;;;;AAWA,SAAS,YAAY,MAAM,OAAO;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406,7 @@ const PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedR
|
|
|
406
406
|
const { scope, animatePosition, transition, ...rest } = propsIn;
|
|
407
407
|
const { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;
|
|
408
408
|
const context = usePopperContext(scope);
|
|
409
|
-
const sizeVal = typeof sizeProp === "number" ? sizeProp : getVariableValue(getSize(sizeProp ?? context.size)) * .52 - 11.5;
|
|
409
|
+
const sizeVal = typeof sizeProp === "number" ? sizeProp : getVariableValue(getSize(sizeProp ?? context.size ?? true)) * .52 - 11.5;
|
|
410
410
|
const size = Math.max(0, +sizeVal);
|
|
411
411
|
const { placement } = context;
|
|
412
412
|
const refs = useComposedRefs(context.arrowRef, forwardedRef);
|
package/dist/jsx/Popper.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.js","names":[],"sources":["jsx/Popper.js"],"sourcesContent":["import { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createRefComponent, createStyledContext, createStyledHOC, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, size, useFloating } from \"@tamagui/floating\";\nimport { getSize } from \"@tamagui/get-token\";\nimport { startTransition } from \"@tamagui/start-transition\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nconst PopperContextFast = createStyledContext({}, \"Popper__\");\nconst PopperPositionContext = createStyledContext;\nconst { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nconst PopperContextSlow = createStyledContext({}, \"PopperSlow__\");\nconst { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nconst PopperProvider = ({ scope, children, ...context }) => {\n\tconst fns = React.useRef(context);\n\tfns.current = context;\n\tconst [slowContext] = React.useState(() => ({\n\t\trefs: context.refs,\n\t\ttriggerElements: context.triggerElements,\n\t\tupdate(...a) {\n\t\t\tfns.current.update(...a);\n\t\t},\n\t\tgetReferenceProps(p) {\n\t\t\treturn fns.current.getReferenceProps?.(p);\n\t\t},\n\t\tonHoverReference(e) {\n\t\t\tfns.current.onHoverReference?.(e);\n\t\t},\n\t\tonLeaveReference() {\n\t\t\tfns.current.onLeaveReference?.();\n\t\t}\n\t}));\n\treturn /* @__PURE__ */ jsx(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ jsx(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nconst checkFloating = void 0;\nconst setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction getSideAndAlignFromPlacement(placement) {\n\tconst [side, align = \"center\"] = placement.split(\"-\");\n\treturn [side, align];\n}\nconst transformOriginMiddleware = (options) => ({\n\tname: \"transformOrigin\",\n\toptions,\n\tfn(data) {\n\t\tconst { placement, rects, middlewareData } = data;\n\t\tconst isArrowHidden = middlewareData.arrow?.centerOffset !== 0;\n\t\tconst arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n\t\tconst arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n\t\tconst [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n\t\tconst noArrowAlign = {\n\t\t\tstart: \"0%\",\n\t\t\tcenter: \"50%\",\n\t\t\tend: \"100%\"\n\t\t}[placedAlign];\n\t\tconst arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n\t\tconst arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n\t\tlet x = \"\";\n\t\tlet y = \"\";\n\t\tif (placedSide === \"bottom\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${-arrowHeight}px`;\n\t\t} else if (placedSide === \"top\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${rects.floating.height + arrowHeight}px`;\n\t\t} else if (placedSide === \"right\") {\n\t\t\tx = `${-arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t} else if (placedSide === \"left\") {\n\t\t\tx = `${rects.floating.width + arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t}\n\t\treturn { data: {\n\t\t\tx,\n\t\t\ty\n\t\t} };\n\t}\n});\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tlet rafId = requestAnimationFrame(() => {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tconst cleanups = [() => {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (reference instanceof HTMLElement) cleanups.push(registerLayoutNode(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tlet lastWidth = -1;\n\t\tlet lastHeight = -1;\n\t\tconst ro = new ResizeObserver((entries) => {\n\t\t\tconst entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tconst { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(() => ro.disconnect());\n\t}\n\tconst ancestors = [...reference instanceof Element ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)];\n\tconst uniqueAncestors = [...new Set(ancestors)];\n\tfor (const ancestor of uniqueAncestors) ancestor.addEventListener(\"scroll\", update, { passive: true });\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(() => {\n\t\tfor (const ancestor of uniqueAncestors) ancestor.removeEventListener(\"scroll\", update);\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn () => cleanups.forEach((fn) => fn());\n}\nfunction Popper(props) {\n\tconst { children, size: size$1, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset: offset$1, disableRTL, resize, passThrough, open, scope } = props;\n\tconst [arrowEl, setArrow] = React.useState(null);\n\tconst [arrowSize, setArrowSize] = React.useState(0);\n\tconst offsetOptions = offset$1 ?? arrowSize;\n\tconst floatingStyle = React.useRef({});\n\tconst isOpen = passThrough ? false : open ?? true;\n\tconst middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? offset(offsetOptions) : null,\n\t\tallowFlip ? flip(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? shift({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...typeof stayInFrame === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? arrow({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tresize ? size({\n\t\t\tpadding: typeof stayInFrame === \"object\" ? stayInFrame.padding : 10,\n\t\t\tapply({ availableHeight, availableWidth }) {\n\t\t\t\tif (passThrough) return;\n\t\t\t\tObject.assign(floatingStyle.current, {\n\t\t\t\t\tmaxHeight: `${availableHeight}px`,\n\t\t\t\t\tmaxWidth: `${availableWidth}px`\n\t\t\t\t});\n\t\t\t\tconst floatingChild = floating.refs.floating.current?.firstChild;\n\t\t\t\tif (floatingChild && floatingChild instanceof HTMLElement) Object.assign(floatingChild.style, floatingStyle.current);\n\t\t\t},\n\t\t\t...typeof resize === \"object\" && resize\n\t\t}) : null,\n\t\tsize({ apply({ elements, rects, availableWidth, availableHeight }) {\n\t\t\tconst { width: anchorWidth, height: anchorHeight } = rects.reference;\n\t\t\tconst contentStyle = elements.floating.style;\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-width\", `${availableWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-height\", `${availableHeight}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-width\", `${anchorWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-height\", `${anchorHeight}px`);\n\t\t} }),\n\t\ttransformOriginMiddleware({\n\t\t\tarrowHeight: arrowSize,\n\t\t\tarrowWidth: arrowSize\n\t\t})\n\t].filter(Boolean);\n\tlet floating = useFloating({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: disableRTL ?? setupOptions.disableRTL ? {\n\t\t\t...platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tfloating = React.useMemo(() => {\n\t\tconst og = floating.getFloatingProps;\n\t\tif (resize && og) floating.getFloatingProps = (props2) => {\n\t\t\treturn og({\n\t\t\t\t...props2,\n\t\t\t\tstyle: {\n\t\t\t\t\t...props2.style,\n\t\t\t\t\t...floatingStyle.current\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\treturn floating;\n\t}, [floating, resize ? JSON.stringify(resize) : null]);\n\tconst { middlewareData } = floating;\n\treturn /* @__PURE__ */ jsx(PopperProvider, {\n\t\tscope,\n\t\t...React.useMemo(() => {\n\t\t\treturn {\n\t\t\t\tsize: size$1,\n\t\t\t\tarrowRef: setArrow,\n\t\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\t\tonArrowSize: setArrowSize,\n\t\t\t\thasFloating: middlewareData.checkFloating?.hasFloating,\n\t\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\t\topen: !!open,\n\t\t\t\t...floating\n\t\t\t};\n\t\t}, [\n\t\t\topen,\n\t\t\tsize$1,\n\t\t\tfloating,\n\t\t\tJSON.stringify(middlewareData.arrow || null),\n\t\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t\t]),\n\t\tchildren: /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nconst PopperAnchor = createStyledHOC(View, function PopperAnchor2(props, forwardedRef) {\n\tconst { virtualRef, scope, ...rest } = props;\n\tconst context = usePopperContextSlow(scope);\n\tconst { getReferenceProps, refs, update } = context;\n\tconst ref = React.useRef(null);\n\tconst triggerId = React.useId();\n\tReact.useEffect(() => {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!(ref.current instanceof Element)) return;\n\t\tconst el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn () => {\n\t\t\tcontext.triggerElements?.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(() => {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tconst refProps = getReferenceProps?.({\n\t\t...rest,\n\t\tref\n\t}) || null;\n\tconst safeSetReference = React.useCallback((node) => {\n\t\tstartTransition(() => {\n\t\t\trefs.setReference(node);\n\t\t});\n\t}, [refs]);\n\tconst shouldHandleInHover = isWeb && scope;\n\tconst composedRefs = useComposedRefs(forwardedRef, ref, shouldHandleInHover ? void 0 : safeSetReference);\n\treturn /* @__PURE__ */ jsx(View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: (e) => {\n\t\t\t\tconst el = e.currentTarget ?? ref.current;\n\t\t\t\tif (el instanceof HTMLElement) {\n\t\t\t\t\tflushSync(() => refs.setReference(el));\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\trefProps.onPointerEnter?.(e);\n\t\t\t\t\tcontext.onHoverReference?.(e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: (e) => {\n\t\t\t\tcontext.onLeaveReference?.();\n\t\t\t\trefProps?.onMouseLeave?.(e);\n\t\t\t}\n\t\t}\n\t});\n});\nconst PopperContentFrame = styled(View, { displayName: \"PopperContent\" });\nconst PopperContent = createRefComponent(function PopperContent2(props, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in props;\n\tconst { scope, animatePosition, children, passThrough, ...rest } = props;\n\tconst animatePos = animatePosition;\n\tconst context = usePopperContext(scope);\n\tconst { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tconst updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tconst lastNodeRef = React.useRef(null);\n\tconst safeSetFloating = React.useCallback((node) => {\n\t\tconst isNewNode = node !== lastNodeRef.current;\n\t\tif (node) {\n\t\t\tlastNodeRef.current = node;\n\t\t\trefs.setFloating(node);\n\t\t\tif (!isNewNode) updateRef.current?.();\n\t\t}\n\t}, [refs.setFloating]);\n\tReact.useEffect(() => {\n\t\treturn () => {\n\t\t\tconst ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tconst contentRefs = useComposedRefs(safeSetFloating, forwardedRef);\n\tconst [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\tuseIsomorphicLayoutEffect(() => {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tconst hasBeenPositioned = React.useRef(false);\n\tconst lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tconst brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tconst effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tconst effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tconst hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tconst disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tconst [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(() => {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tconst frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : {\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t},\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tconst { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tconst transformOriginStyle = isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ jsx(LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ jsx(View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ jsx(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nconst PopperArrowFrame = styled(View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nconst PopperArrowOuterFrame = styled(View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nconst opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nconst PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tconst { scope, animatePosition, transition, ...rest } = propsIn;\n\tconst { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tconst context = usePopperContext(scope);\n\tconst sizeVal = typeof sizeProp === \"number\" ? sizeProp : getVariableValue(getSize(sizeProp ?? context.size)) * .52 - 11.5;\n\tconst size = Math.max(0, +sizeVal);\n\tconst { placement } = context;\n\tconst refs = useComposedRefs(context.arrowRef, forwardedRef);\n\tconst x = context.arrowStyle?.x || 0;\n\tconst y = context.arrowStyle?.y || 0;\n\tconst arrowPositioned = context.arrowStyle != null;\n\tconst primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tconst arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tconst innerArrowStyle = {};\n\tconst isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tconst oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tcontext.onArrowSize?.(size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ jsx(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n\nexport { Popper, PopperAnchor, PopperArrow, PopperArrowFrame, PopperContent, PopperContentFrame, PopperContextFast, PopperContextSlow, PopperPositionContext, PopperProvider, PopperProviderFast, PopperProviderSlow, setupPopper, usePopperContext, usePopperContextSlow };"],"mappings":";;;;;;;;;;;AAUA,MAAM,oBAAoB,oBAAoB,CAAC,GAAG,UAAU;AAC5D,MAAM,wBAAwB;AAC9B,MAAM,EAAE,kBAAkB,kBAAkB,UAAU,uBAAuB;AAC7E,MAAM,oBAAo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QAAQ,cAAc;CAC9C,MAAM,mBAAmB,YAAY,UAAU,MAAM,GAAG,CAAC,CAAC,KAAK;CAC/D,MAAM,aAAa;EAClB;EACA;EACA,OAAO;EACP,QAAQ;CACT;CACA,MAAM,kBAAkB,CAAC;CACzB,MAAM,aAAa,qBAAqB,YAAY,qBAAqB;CACzE,IAAI,kBAAkB;EACrB,WAAW,aAAa,UAAU,YAAY,OAAO;EACrD,MAAM,UAAU,UAAU;EAC1B,IAAI,SAAS;GACZ,WAAW,WAAW,CAAC;GACvB,gBAAgB,WAAW,OAAO;EACnC;EACA,IAAI,YAAY,SAAS,YAAY,UAAU,WAAW,OAAO;EACjE,IAAI,YAAY,UAAU,YAAY,SAAS,WAAW,MAAM;EAChE,gCAAgC;GAC/B,QAAQ,cAAc,IAAI;EAC3B,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;CAC/B;CACA,OAAuB,oBAAI,uBAAuB;EACjD,KAAK;EACL,GAAG;EACH,GAAG,CAAC,mBAAmB,EAAE,SAAS,EAAE;EACpC,GAAG,0BAA0B;GAC5B,YAAY,kBAAkB,aAAa,KAAK;GAChD,aAAa,kBAAkB,CAAC,WAAW,IAAI,CAAC;GAChD,iBAAiB;EAClB;EACA,UAA0B,oBAAI,kBAAkB;GAC/C,OAAO;GACP,QAAQ;GACR,GAAG;GACH,GAAG;GACH,QAAQ;GACR,GAAG,qBAAqB,YAAY;IACnC,iBAAiB;IACjB,gBAAgB;GACjB;GACA,GAAG,qBAAqB,SAAS;IAChC,mBAAmB;IACnB,kBAAkB;GACnB;GACA,GAAG,qBAAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Popper.js","names":[],"sources":["jsx/Popper.js"],"sourcesContent":["import { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createRefComponent, createStyledContext, createStyledHOC, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, size, useFloating } from \"@tamagui/floating\";\nimport { getSize } from \"@tamagui/get-token\";\nimport { startTransition } from \"@tamagui/start-transition\";\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\n\nconst PopperContextFast = createStyledContext({}, \"Popper__\");\nconst PopperPositionContext = createStyledContext;\nconst { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nconst PopperContextSlow = createStyledContext({}, \"PopperSlow__\");\nconst { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nconst PopperProvider = ({ scope, children, ...context }) => {\n\tconst fns = React.useRef(context);\n\tfns.current = context;\n\tconst [slowContext] = React.useState(() => ({\n\t\trefs: context.refs,\n\t\ttriggerElements: context.triggerElements,\n\t\tupdate(...a) {\n\t\t\tfns.current.update(...a);\n\t\t},\n\t\tgetReferenceProps(p) {\n\t\t\treturn fns.current.getReferenceProps?.(p);\n\t\t},\n\t\tonHoverReference(e) {\n\t\t\tfns.current.onHoverReference?.(e);\n\t\t},\n\t\tonLeaveReference() {\n\t\t\tfns.current.onLeaveReference?.();\n\t\t}\n\t}));\n\treturn /* @__PURE__ */ jsx(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ jsx(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nconst checkFloating = void 0;\nconst setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction getSideAndAlignFromPlacement(placement) {\n\tconst [side, align = \"center\"] = placement.split(\"-\");\n\treturn [side, align];\n}\nconst transformOriginMiddleware = (options) => ({\n\tname: \"transformOrigin\",\n\toptions,\n\tfn(data) {\n\t\tconst { placement, rects, middlewareData } = data;\n\t\tconst isArrowHidden = middlewareData.arrow?.centerOffset !== 0;\n\t\tconst arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n\t\tconst arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n\t\tconst [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n\t\tconst noArrowAlign = {\n\t\t\tstart: \"0%\",\n\t\t\tcenter: \"50%\",\n\t\t\tend: \"100%\"\n\t\t}[placedAlign];\n\t\tconst arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n\t\tconst arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n\t\tlet x = \"\";\n\t\tlet y = \"\";\n\t\tif (placedSide === \"bottom\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${-arrowHeight}px`;\n\t\t} else if (placedSide === \"top\") {\n\t\t\tx = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n\t\t\ty = `${rects.floating.height + arrowHeight}px`;\n\t\t} else if (placedSide === \"right\") {\n\t\t\tx = `${-arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t} else if (placedSide === \"left\") {\n\t\t\tx = `${rects.floating.width + arrowHeight}px`;\n\t\t\ty = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n\t\t}\n\t\treturn { data: {\n\t\t\tx,\n\t\t\ty\n\t\t} };\n\t}\n});\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tlet rafId = requestAnimationFrame(() => {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tconst cleanups = [() => {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (reference instanceof HTMLElement) cleanups.push(registerLayoutNode(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tlet lastWidth = -1;\n\t\tlet lastHeight = -1;\n\t\tconst ro = new ResizeObserver((entries) => {\n\t\t\tconst entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tconst { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(() => ro.disconnect());\n\t}\n\tconst ancestors = [...reference instanceof Element ? getOverflowAncestors(reference) : [], ...getOverflowAncestors(floating)];\n\tconst uniqueAncestors = [...new Set(ancestors)];\n\tfor (const ancestor of uniqueAncestors) ancestor.addEventListener(\"scroll\", update, { passive: true });\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(() => {\n\t\tfor (const ancestor of uniqueAncestors) ancestor.removeEventListener(\"scroll\", update);\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn () => cleanups.forEach((fn) => fn());\n}\nfunction Popper(props) {\n\tconst { children, size: size$1, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset: offset$1, disableRTL, resize, passThrough, open, scope } = props;\n\tconst [arrowEl, setArrow] = React.useState(null);\n\tconst [arrowSize, setArrowSize] = React.useState(0);\n\tconst offsetOptions = offset$1 ?? arrowSize;\n\tconst floatingStyle = React.useRef({});\n\tconst isOpen = passThrough ? false : open ?? true;\n\tconst middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? offset(offsetOptions) : null,\n\t\tallowFlip ? flip(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? shift({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...typeof stayInFrame === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? arrow({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tresize ? size({\n\t\t\tpadding: typeof stayInFrame === \"object\" ? stayInFrame.padding : 10,\n\t\t\tapply({ availableHeight, availableWidth }) {\n\t\t\t\tif (passThrough) return;\n\t\t\t\tObject.assign(floatingStyle.current, {\n\t\t\t\t\tmaxHeight: `${availableHeight}px`,\n\t\t\t\t\tmaxWidth: `${availableWidth}px`\n\t\t\t\t});\n\t\t\t\tconst floatingChild = floating.refs.floating.current?.firstChild;\n\t\t\t\tif (floatingChild && floatingChild instanceof HTMLElement) Object.assign(floatingChild.style, floatingStyle.current);\n\t\t\t},\n\t\t\t...typeof resize === \"object\" && resize\n\t\t}) : null,\n\t\tsize({ apply({ elements, rects, availableWidth, availableHeight }) {\n\t\t\tconst { width: anchorWidth, height: anchorHeight } = rects.reference;\n\t\t\tconst contentStyle = elements.floating.style;\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-width\", `${availableWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-available-height\", `${availableHeight}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-width\", `${anchorWidth}px`);\n\t\t\tcontentStyle.setProperty(\"--tamagui-popper-anchor-height\", `${anchorHeight}px`);\n\t\t} }),\n\t\ttransformOriginMiddleware({\n\t\t\tarrowHeight: arrowSize,\n\t\t\tarrowWidth: arrowSize\n\t\t})\n\t].filter(Boolean);\n\tlet floating = useFloating({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: disableRTL ?? setupOptions.disableRTL ? {\n\t\t\t...platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tfloating = React.useMemo(() => {\n\t\tconst og = floating.getFloatingProps;\n\t\tif (resize && og) floating.getFloatingProps = (props2) => {\n\t\t\treturn og({\n\t\t\t\t...props2,\n\t\t\t\tstyle: {\n\t\t\t\t\t...props2.style,\n\t\t\t\t\t...floatingStyle.current\n\t\t\t\t}\n\t\t\t});\n\t\t};\n\t\treturn floating;\n\t}, [floating, resize ? JSON.stringify(resize) : null]);\n\tconst { middlewareData } = floating;\n\treturn /* @__PURE__ */ jsx(PopperProvider, {\n\t\tscope,\n\t\t...React.useMemo(() => {\n\t\t\treturn {\n\t\t\t\tsize: size$1,\n\t\t\t\tarrowRef: setArrow,\n\t\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\t\tonArrowSize: setArrowSize,\n\t\t\t\thasFloating: middlewareData.checkFloating?.hasFloating,\n\t\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\t\topen: !!open,\n\t\t\t\t...floating\n\t\t\t};\n\t\t}, [\n\t\t\topen,\n\t\t\tsize$1,\n\t\t\tfloating,\n\t\t\tJSON.stringify(middlewareData.arrow || null),\n\t\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t\t]),\n\t\tchildren: /* @__PURE__ */ jsx(FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nconst PopperAnchor = createStyledHOC(View, function PopperAnchor2(props, forwardedRef) {\n\tconst { virtualRef, scope, ...rest } = props;\n\tconst context = usePopperContextSlow(scope);\n\tconst { getReferenceProps, refs, update } = context;\n\tconst ref = React.useRef(null);\n\tconst triggerId = React.useId();\n\tReact.useEffect(() => {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!(ref.current instanceof Element)) return;\n\t\tconst el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn () => {\n\t\t\tcontext.triggerElements?.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(() => {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tconst refProps = getReferenceProps?.({\n\t\t...rest,\n\t\tref\n\t}) || null;\n\tconst safeSetReference = React.useCallback((node) => {\n\t\tstartTransition(() => {\n\t\t\trefs.setReference(node);\n\t\t});\n\t}, [refs]);\n\tconst shouldHandleInHover = isWeb && scope;\n\tconst composedRefs = useComposedRefs(forwardedRef, ref, shouldHandleInHover ? void 0 : safeSetReference);\n\treturn /* @__PURE__ */ jsx(View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: (e) => {\n\t\t\t\tconst el = e.currentTarget ?? ref.current;\n\t\t\t\tif (el instanceof HTMLElement) {\n\t\t\t\t\tflushSync(() => refs.setReference(el));\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\trefProps.onPointerEnter?.(e);\n\t\t\t\t\tcontext.onHoverReference?.(e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: (e) => {\n\t\t\t\tcontext.onLeaveReference?.();\n\t\t\t\trefProps?.onMouseLeave?.(e);\n\t\t\t}\n\t\t}\n\t});\n});\nconst PopperContentFrame = styled(View, { displayName: \"PopperContent\" });\nconst PopperContent = createRefComponent(function PopperContent2(props, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in props;\n\tconst { scope, animatePosition, children, passThrough, ...rest } = props;\n\tconst animatePos = animatePosition;\n\tconst context = usePopperContext(scope);\n\tconst { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tconst updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tconst lastNodeRef = React.useRef(null);\n\tconst safeSetFloating = React.useCallback((node) => {\n\t\tconst isNewNode = node !== lastNodeRef.current;\n\t\tif (node) {\n\t\t\tlastNodeRef.current = node;\n\t\t\trefs.setFloating(node);\n\t\t\tif (!isNewNode) updateRef.current?.();\n\t\t}\n\t}, [refs.setFloating]);\n\tReact.useEffect(() => {\n\t\treturn () => {\n\t\t\tconst ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tconst contentRefs = useComposedRefs(safeSetFloating, forwardedRef);\n\tconst [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\tuseIsomorphicLayoutEffect(() => {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tconst hasBeenPositioned = React.useRef(false);\n\tconst lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tconst brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tconst effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tconst effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tconst hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tconst disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tconst [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(() => {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tconst frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : {\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t},\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tconst { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tconst transformOriginStyle = isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ jsx(LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ jsx(View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ jsx(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nconst PopperArrowFrame = styled(View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nconst PopperArrowOuterFrame = styled(View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nconst opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nconst PopperArrow = createRefComponent(function PopperArrow2(propsIn, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tconst { scope, animatePosition, transition, ...rest } = propsIn;\n\tconst { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tconst context = usePopperContext(scope);\n\tconst sizeVal = typeof sizeProp === \"number\" ? sizeProp : getVariableValue(getSize(sizeProp ?? context.size ?? true)) * .52 - 11.5;\n\tconst size = Math.max(0, +sizeVal);\n\tconst { placement } = context;\n\tconst refs = useComposedRefs(context.arrowRef, forwardedRef);\n\tconst x = context.arrowStyle?.x || 0;\n\tconst y = context.arrowStyle?.y || 0;\n\tconst arrowPositioned = context.arrowStyle != null;\n\tconst primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tconst arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tconst innerArrowStyle = {};\n\tconst isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tconst oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\tuseIsomorphicLayoutEffect(() => {\n\t\t\tcontext.onArrowSize?.(size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ jsx(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ jsx(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n\nexport { Popper, PopperAnchor, PopperArrow, PopperArrowFrame, PopperContent, PopperContentFrame, PopperContextFast, PopperContextSlow, PopperPositionContext, PopperProvider, PopperProviderFast, PopperProviderSlow, setupPopper, usePopperContext, usePopperContextSlow };"],"mappings":";;;;;;;;;;;AAUA,MAAM,oBAAoB,oBAAoB,CAAC,GAAG,UAAU;AAC5D,MAAM,wBAAwB;AAC9B,MAAM,EAAE,kBAAkB,kBAAkB,UAAU,uBAAuB;AAC7E,MAAM,oBAAoB,oBAAoB,CAAC,GAAG,cAAc;AAChE,MAAM,EAAE,kBAAkB,sBAAsB,UAAU,uBAAuB;AACjF,MAAM,kBAAkB,EAAE,OAAO,UAAU,GAAG,cAAc;CAC3D,MAAM,MAAM,MAAM,OAAO,OAAO;CAChC,IAAI,UAAU;CACd,MAAM,CAAC,eAAe,MAAM,gBAAgB;EAC3C,MAAM,QAAQ;EACd,iBAAiB,QAAQ;EACzB,OAAO,GAAG,GAAG;GACZ,IAAI,QAAQ,OAAO,GAAG,CAAC;EACxB;EACA,kBAAkB,GAAG;GACpB,OAAO,IAAI,QAAQ,oBAAoB,CAAC;EACzC;EACA,iBAAiB,GAAG;GACnB,IAAI,QAAQ,mBAAmB,CAAC;EACjC;EACA,mBAAmB;GAClB,IAAI,QAAQ,mBAAmB;EAChC;CACD,EAAE;CACF,OAAuB,oBAAI,oBAAoB;EAC9C;EACA,GAAG;EACH,UAA0B,oBAAI,oBAAoB;GACjD;GACA,GAAG;GACH;EACD,CAAC;C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C,mBAAmB,EAAE,SAAS,EAAE;EACpC,GAAG,0BAA0B;GAC5B,YAAY,kBAAkB,aAAa,KAAK;GAChD,aAAa,kBAAkB,CAAC,WAAW,IAAI,CAAC;GAChD,iBAAiB;EAClB;EACA,UAA0B,oBAAI,kBAAkB;GAC/C,OAAO;GACP,QAAQ;GACR,GAAG;GACH,GAAG;GACH,QAAQ;GACR,GAAG,qBAAqB,YAAY;IACnC,iBAAiB;IACjB,gBAAgB;GACjB;GACA,GAAG,qBAAqB,SAAS;IAChC,mBAAmB;IACnB,kBAAkB;GACnB;GACA,GAAG,qBAAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
|
|
@@ -466,7 +466,8 @@ var PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(prop
|
|
|
466
466
|
var { scope, animatePosition, transition, ...rest } = propsIn;
|
|
467
467
|
var { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;
|
|
468
468
|
var context = usePopperContext(scope);
|
|
469
|
-
var
|
|
469
|
+
var _ref;
|
|
470
|
+
var sizeVal = typeof sizeProp === "number" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)((_ref = sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size) !== null && _ref !== void 0 ? _ref : true)) * .52 - 11.5;
|
|
470
471
|
var size = Math.max(0, +sizeVal);
|
|
471
472
|
var { placement } = context;
|
|
472
473
|
var refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);
|
|
@@ -466,7 +466,8 @@ var PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(prop
|
|
|
466
466
|
var { scope, animatePosition, transition, ...rest } = propsIn;
|
|
467
467
|
var { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;
|
|
468
468
|
var context = usePopperContext(scope);
|
|
469
|
-
var
|
|
469
|
+
var _ref;
|
|
470
|
+
var sizeVal = typeof sizeProp === "number" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)((_ref = sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size) !== null && _ref !== void 0 ? _ref : true)) * .52 - 11.5;
|
|
470
471
|
var size = Math.max(0, +sizeVal);
|
|
471
472
|
var { placement } = context;
|
|
472
473
|
var refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.native.js","names":[],"sources":["jsx/Popper.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 Popper_exports = {};\n__export(Popper_exports, {\n\tPopper: () => Popper,\n\tPopperAnchor: () => PopperAnchor,\n\tPopperArrow: () => PopperArrow,\n\tPopperArrowFrame: () => PopperArrowFrame,\n\tPopperContent: () => PopperContent,\n\tPopperContentFrame: () => PopperContentFrame,\n\tPopperContextFast: () => PopperContextFast,\n\tPopperContextSlow: () => PopperContextSlow,\n\tPopperPositionContext: () => PopperPositionContext,\n\tPopperProvider: () => PopperProvider,\n\tPopperProviderFast: () => PopperProviderFast,\n\tPopperProviderSlow: () => PopperProviderSlow,\n\tsetupPopper: () => setupPopper,\n\tusePopperContext: () => usePopperContext,\n\tusePopperContextSlow: () => usePopperContextSlow\n});\nmodule.exports = __toCommonJS(Popper_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react_dom = require(\"react-dom\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_floating = require(\"@tamagui/floating\");\nvar import_floating2 = require(\"@tamagui/floating\");\nvar import_get_token = require(\"@tamagui/get-token\");\nvar import_start_transition = require(\"@tamagui/start-transition\");\nvar React = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nfunction _instanceof(left, right) {\n\tif (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) return !!right[Symbol.hasInstance](left);\n\telse return left instanceof right;\n}\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar PopperContextFast = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"Popper__\"\n);\nvar PopperPositionContext = import_core.createStyledContext;\nvar { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nvar PopperContextSlow = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"PopperSlow__\"\n);\nvar { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nvar PopperProvider = function(param) {\n\tvar { scope, children, ...context } = param;\n\tvar fns = React.useRef(context);\n\tfns.current = context;\n\tvar [slowContext] = React.useState(function() {\n\t\treturn {\n\t\t\trefs: context.refs,\n\t\t\ttriggerElements: context.triggerElements,\n\t\t\tupdate() {\n\t\t\t\tfor (var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++) a[_key] = arguments[_key];\n\t\t\t\tfns.current.update(...a);\n\t\t\t},\n\t\t\tgetReferenceProps(p) {\n\t\t\t\tvar _fns_current_getReferenceProps, _fns_current;\n\t\t\t\treturn (_fns_current_getReferenceProps = (_fns_current = fns.current).getReferenceProps) === null || _fns_current_getReferenceProps === void 0 ? void 0 : _fns_current_getReferenceProps.call(_fns_current, p);\n\t\t\t},\n\t\t\tonHoverReference(e) {\n\t\t\t\tvar _fns_current_onHoverReference, _fns_current;\n\t\t\t\t(_fns_current_onHoverReference = (_fns_current = fns.current).onHoverReference) === null || _fns_current_onHoverReference === void 0 || _fns_current_onHoverReference.call(_fns_current, e);\n\t\t\t},\n\t\t\tonLeaveReference() {\n\t\t\t\tvar _fns_current_onLeaveReference, _fns_current;\n\t\t\t\t(_fns_current_onLeaveReference = (_fns_current = fns.current).onLeaveReference) === null || _fns_current_onLeaveReference === void 0 || _fns_current_onLeaveReference.call(_fns_current);\n\t\t\t}\n\t\t};\n\t});\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nvar checkFloating = {\n\tname: \"checkFloating\",\n\tfn(data) {\n\t\treturn { data: { hasFloating: !!data.rects.floating.width } };\n\t}\n};\nvar setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tvar rafId = requestAnimationFrame(function() {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tvar cleanups = [function() {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (_instanceof(reference, HTMLElement)) cleanups.push((0, import_core.registerLayoutNode)(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tvar lastWidth = -1;\n\t\tvar lastHeight = -1;\n\t\tvar ro = new ResizeObserver(function(entries) {\n\t\t\tvar entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tvar { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(function() {\n\t\t\treturn ro.disconnect();\n\t\t});\n\t}\n\tvar ancestors = [..._instanceof(reference, Element) ? (0, import_floating2.getOverflowAncestors)(reference) : [], ...(0, import_floating2.getOverflowAncestors)(floating)];\n\tvar uniqueAncestors = [...new Set(ancestors)];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = uniqueAncestors[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.addEventListener(\"scroll\", update, { passive: true });\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(function() {\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = uniqueAncestors[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) _step2.value.removeEventListener(\"scroll\", update);\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn function() {\n\t\treturn cleanups.forEach(function(fn) {\n\t\t\treturn fn();\n\t\t});\n\t};\n}\nfunction Popper(props) {\n\tvar { children, size, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset, disableRTL, resize, passThrough, open, scope } = props;\n\tvar [arrowEl, setArrow] = React.useState(null);\n\tvar [arrowSize, setArrowSize] = React.useState(0);\n\tvar offsetOptions = offset !== null && offset !== void 0 ? offset : arrowSize;\n\tReact.useRef({});\n\tvar isOpen = passThrough ? false : open !== null && open !== void 0 ? open : true;\n\tvar middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? (0, import_floating2.offset)(offsetOptions) : null,\n\t\tallowFlip ? (0, import_floating2.flip)(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? (0, import_floating2.shift)({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...(typeof stayInFrame === \"undefined\" ? \"undefined\" : _type_of(stayInFrame)) === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? (0, import_floating2.arrow)({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tnull,\n\t\tnull,\n\t\tnull\n\t].filter(Boolean);\n\tvar floating = (0, import_floating2.useFloating)({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: (disableRTL !== null && disableRTL !== void 0 ? disableRTL : setupOptions.disableRTL) ? {\n\t\t\t...import_floating2.platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : import_floating2.platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tvar { middlewareData } = floating;\n\tvar dimensions = (0, import_react_native.useWindowDimensions)();\n\tvar [keyboardOpen, setKeyboardOpen] = React.useState(false);\n\tReact.useEffect(function() {\n\t\tvar showSubscription = import_react_native.Keyboard.addListener(\"keyboardDidShow\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(true);\n\t\t\t});\n\t\t});\n\t\tvar hideSubscription = import_react_native.Keyboard.addListener(\"keyboardDidHide\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(false);\n\t\t\t});\n\t\t});\n\t\treturn function() {\n\t\t\tshowSubscription.remove();\n\t\t\thideSubscription.remove();\n\t\t};\n\t}, []);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (passThrough) return;\n\t\tfloating.update();\n\t}, [\n\t\tpassThrough,\n\t\tdimensions,\n\t\tkeyboardOpen\n\t]);\n\tvar popperContext = React.useMemo(function() {\n\t\tvar _middlewareData_checkFloating;\n\t\treturn {\n\t\t\tsize,\n\t\t\tarrowRef: setArrow,\n\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\tonArrowSize: setArrowSize,\n\t\t\thasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,\n\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\topen: !!open,\n\t\t\t...floating\n\t\t};\n\t}, [\n\t\topen,\n\t\tsize,\n\t\tfloating,\n\t\tJSON.stringify(middlewareData.arrow || null),\n\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t]);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProvider, {\n\t\tscope,\n\t\t...popperContext,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_floating.FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nvar PopperAnchor = (0, import_core.createStyledHOC)(import_core.View, function PopperAnchor2(props, forwardedRef) {\n\tvar { virtualRef, scope, ...rest } = props;\n\tvar context = usePopperContextSlow(scope);\n\tvar { getReferenceProps, refs, update } = context;\n\tvar ref = React.useRef(null);\n\tvar triggerId = React.useId();\n\tReact.useEffect(function() {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!_instanceof(ref.current, Element)) return;\n\t\tvar el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn function() {\n\t\t\tvar _context_triggerElements;\n\t\t\t(_context_triggerElements = context.triggerElements) === null || _context_triggerElements === void 0 || _context_triggerElements.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(function() {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tvar refProps = (getReferenceProps === null || getReferenceProps === void 0 ? void 0 : getReferenceProps({\n\t\t...rest,\n\t\tref\n\t})) || null;\n\tvar safeSetReference = React.useCallback(\n\t\tfunction(node) {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\trefs.setReference(node);\n\t\t\t});\n\t\t},\n\t\t// it was refs.setRefernce but its stable and refs is undefined on server\n\t\t[refs]\n\t);\n\tvar shouldHandleInHover = import_constants.isWeb && scope;\n\tvar composedRefs = (0, import_compose_refs.useComposedRefs)(\n\t\tforwardedRef,\n\t\tref,\n\t\t// web handles this onMouseEnter below so it can support multiple targets + hovering\n\t\tshouldHandleInHover ? void 0 : safeSetReference\n\t);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: function(e) {\n\t\t\t\tvar _e_currentTarget;\n\t\t\t\tvar el = (_e_currentTarget = e.currentTarget) !== null && _e_currentTarget !== void 0 ? _e_currentTarget : ref.current;\n\t\t\t\tif (_instanceof(el, HTMLElement)) {\n\t\t\t\t\tvar _refProps_onPointerEnter, _context_onHoverReference;\n\t\t\t\t\t(0, import_react_dom.flushSync)(function() {\n\t\t\t\t\t\treturn refs.setReference(el);\n\t\t\t\t\t});\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\t(_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e);\n\t\t\t\t\t(_context_onHoverReference = context.onHoverReference) === null || _context_onHoverReference === void 0 || _context_onHoverReference.call(context, e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: function(e) {\n\t\t\t\tvar _context_onLeaveReference, _refProps_onMouseLeave;\n\t\t\t\t(_context_onLeaveReference = context.onLeaveReference) === null || _context_onLeaveReference === void 0 || _context_onLeaveReference.call(context);\n\t\t\t\trefProps === null || refProps === void 0 || (_refProps_onMouseLeave = refProps.onMouseLeave) == null || _refProps_onMouseLeave.call(refProps, e);\n\t\t\t}\n\t\t}\n\t});\n});\nvar PopperContentFrame = (0, import_core.styled)(import_core.View, { displayName: \"PopperContent\" });\nvar PopperContent = (0, import_core.createRefComponent)(function PopperContent2(props, forwardedRef) {\n\tvar isAnimatePosControlled = \"animatePosition\" in props;\n\tvar { scope, animatePosition, children, passThrough, ...rest } = props;\n\tvar animatePos = animatePosition;\n\tvar context = usePopperContext(scope);\n\tvar { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tvar updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tvar lastNodeRef = React.useRef(null);\n\tvar safeSetFloating = React.useCallback(\n\t\tfunction(node) {\n\t\t\tvar isNewNode = node !== lastNodeRef.current;\n\t\t\tif (node) {\n\t\t\t\tlastNodeRef.current = node;\n\t\t\t\trefs.setFloating(node);\n\t\t\t\tif (!isNewNode) {\n\t\t\t\t\tvar _updateRef_current;\n\t\t\t\t\t(_updateRef_current = updateRef.current) === null || _updateRef_current === void 0 || _updateRef_current.call(updateRef);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t// null calls are blocked: cycling nulls are transient, genuine unmount\n\t\t// is handled by the useEffect cleanup below\n\t\t[refs.setFloating]\n\t);\n\tReact.useEffect(function() {\n\t\treturn function() {\n\t\t\tvar ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tvar contentRefs = (0, import_compose_refs.useComposedRefs)(safeSetFloating, forwardedRef);\n\tvar [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tvar hasBeenPositioned = React.useRef(false);\n\tvar lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tvar brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tvar effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tvar effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tvar hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tvar disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tvar [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(function() {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tvar frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : (\n\t\t// omit x/y when hiding - prevents motion driver from animating from origin\n\t\t{\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t}),\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tvar { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tvar transformOriginStyle = import_constants.isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nvar PopperArrowFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nvar PopperArrowOuterFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nvar opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nvar PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(propsIn, forwardedRef) {\n\tvar _context_arrowStyle, _context_arrowStyle1;\n\tvar isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tvar { scope, animatePosition, transition, ...rest } = propsIn;\n\tvar { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tvar context = usePopperContext(scope);\n\tvar sizeVal = typeof sizeProp === \"number\" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)(sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size)) * .52 - 11.5;\n\tvar size = Math.max(0, +sizeVal);\n\tvar { placement } = context;\n\tvar refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);\n\tvar x = ((_context_arrowStyle = context.arrowStyle) === null || _context_arrowStyle === void 0 ? void 0 : _context_arrowStyle.x) || 0;\n\tvar y = ((_context_arrowStyle1 = context.arrowStyle) === null || _context_arrowStyle1 === void 0 ? void 0 : _context_arrowStyle1.y) || 0;\n\tvar arrowPositioned = context.arrowStyle != null;\n\tvar primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tvar arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tvar innerArrowStyle = {};\n\tvar isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tvar oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t\tvar _context_onArrowSize;\n\t\t\t(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement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,qBAAqB,SAAS;IAChC,mBAAmB;IACnB,kBAAkB;GACnB;GACA,GAAG,qBAAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"Popper.native.js","names":[],"sources":["jsx/Popper.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 Popper_exports = {};\n__export(Popper_exports, {\n\tPopper: () => Popper,\n\tPopperAnchor: () => PopperAnchor,\n\tPopperArrow: () => PopperArrow,\n\tPopperArrowFrame: () => PopperArrowFrame,\n\tPopperContent: () => PopperContent,\n\tPopperContentFrame: () => PopperContentFrame,\n\tPopperContextFast: () => PopperContextFast,\n\tPopperContextSlow: () => PopperContextSlow,\n\tPopperPositionContext: () => PopperPositionContext,\n\tPopperProvider: () => PopperProvider,\n\tPopperProviderFast: () => PopperProviderFast,\n\tPopperProviderSlow: () => PopperProviderSlow,\n\tsetupPopper: () => setupPopper,\n\tusePopperContext: () => usePopperContext,\n\tusePopperContextSlow: () => usePopperContextSlow\n});\nmodule.exports = __toCommonJS(Popper_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react_dom = require(\"react-dom\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_floating = require(\"@tamagui/floating\");\nvar import_floating2 = require(\"@tamagui/floating\");\nvar import_get_token = require(\"@tamagui/get-token\");\nvar import_start_transition = require(\"@tamagui/start-transition\");\nvar React = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nfunction _instanceof(left, right) {\n\tif (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) return !!right[Symbol.hasInstance](left);\n\telse return left instanceof right;\n}\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar PopperContextFast = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"Popper__\"\n);\nvar PopperPositionContext = import_core.createStyledContext;\nvar { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nvar PopperContextSlow = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"PopperSlow__\"\n);\nvar { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nvar PopperProvider = function(param) {\n\tvar { scope, children, ...context } = param;\n\tvar fns = React.useRef(context);\n\tfns.current = context;\n\tvar [slowContext] = React.useState(function() {\n\t\treturn {\n\t\t\trefs: context.refs,\n\t\t\ttriggerElements: context.triggerElements,\n\t\t\tupdate() {\n\t\t\t\tfor (var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++) a[_key] = arguments[_key];\n\t\t\t\tfns.current.update(...a);\n\t\t\t},\n\t\t\tgetReferenceProps(p) {\n\t\t\t\tvar _fns_current_getReferenceProps, _fns_current;\n\t\t\t\treturn (_fns_current_getReferenceProps = (_fns_current = fns.current).getReferenceProps) === null || _fns_current_getReferenceProps === void 0 ? void 0 : _fns_current_getReferenceProps.call(_fns_current, p);\n\t\t\t},\n\t\t\tonHoverReference(e) {\n\t\t\t\tvar _fns_current_onHoverReference, _fns_current;\n\t\t\t\t(_fns_current_onHoverReference = (_fns_current = fns.current).onHoverReference) === null || _fns_current_onHoverReference === void 0 || _fns_current_onHoverReference.call(_fns_current, e);\n\t\t\t},\n\t\t\tonLeaveReference() {\n\t\t\t\tvar _fns_current_onLeaveReference, _fns_current;\n\t\t\t\t(_fns_current_onLeaveReference = (_fns_current = fns.current).onLeaveReference) === null || _fns_current_onLeaveReference === void 0 || _fns_current_onLeaveReference.call(_fns_current);\n\t\t\t}\n\t\t};\n\t});\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nvar checkFloating = {\n\tname: \"checkFloating\",\n\tfn(data) {\n\t\treturn { data: { hasFloating: !!data.rects.floating.width } };\n\t}\n};\nvar setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tvar rafId = requestAnimationFrame(function() {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tvar cleanups = [function() {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (_instanceof(reference, HTMLElement)) cleanups.push((0, import_core.registerLayoutNode)(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tvar lastWidth = -1;\n\t\tvar lastHeight = -1;\n\t\tvar ro = new ResizeObserver(function(entries) {\n\t\t\tvar entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tvar { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(function() {\n\t\t\treturn ro.disconnect();\n\t\t});\n\t}\n\tvar ancestors = [..._instanceof(reference, Element) ? (0, import_floating2.getOverflowAncestors)(reference) : [], ...(0, import_floating2.getOverflowAncestors)(floating)];\n\tvar uniqueAncestors = [...new Set(ancestors)];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = uniqueAncestors[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.addEventListener(\"scroll\", update, { passive: true });\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(function() {\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = uniqueAncestors[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) _step2.value.removeEventListener(\"scroll\", update);\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn function() {\n\t\treturn cleanups.forEach(function(fn) {\n\t\t\treturn fn();\n\t\t});\n\t};\n}\nfunction Popper(props) {\n\tvar { children, size, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset, disableRTL, resize, passThrough, open, scope } = props;\n\tvar [arrowEl, setArrow] = React.useState(null);\n\tvar [arrowSize, setArrowSize] = React.useState(0);\n\tvar offsetOptions = offset !== null && offset !== void 0 ? offset : arrowSize;\n\tReact.useRef({});\n\tvar isOpen = passThrough ? false : open !== null && open !== void 0 ? open : true;\n\tvar middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? (0, import_floating2.offset)(offsetOptions) : null,\n\t\tallowFlip ? (0, import_floating2.flip)(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? (0, import_floating2.shift)({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...(typeof stayInFrame === \"undefined\" ? \"undefined\" : _type_of(stayInFrame)) === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? (0, import_floating2.arrow)({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tnull,\n\t\tnull,\n\t\tnull\n\t].filter(Boolean);\n\tvar floating = (0, import_floating2.useFloating)({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: (disableRTL !== null && disableRTL !== void 0 ? disableRTL : setupOptions.disableRTL) ? {\n\t\t\t...import_floating2.platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : import_floating2.platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tvar { middlewareData } = floating;\n\tvar dimensions = (0, import_react_native.useWindowDimensions)();\n\tvar [keyboardOpen, setKeyboardOpen] = React.useState(false);\n\tReact.useEffect(function() {\n\t\tvar showSubscription = import_react_native.Keyboard.addListener(\"keyboardDidShow\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(true);\n\t\t\t});\n\t\t});\n\t\tvar hideSubscription = import_react_native.Keyboard.addListener(\"keyboardDidHide\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(false);\n\t\t\t});\n\t\t});\n\t\treturn function() {\n\t\t\tshowSubscription.remove();\n\t\t\thideSubscription.remove();\n\t\t};\n\t}, []);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (passThrough) return;\n\t\tfloating.update();\n\t}, [\n\t\tpassThrough,\n\t\tdimensions,\n\t\tkeyboardOpen\n\t]);\n\tvar popperContext = React.useMemo(function() {\n\t\tvar _middlewareData_checkFloating;\n\t\treturn {\n\t\t\tsize,\n\t\t\tarrowRef: setArrow,\n\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\tonArrowSize: setArrowSize,\n\t\t\thasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,\n\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\topen: !!open,\n\t\t\t...floating\n\t\t};\n\t}, [\n\t\topen,\n\t\tsize,\n\t\tfloating,\n\t\tJSON.stringify(middlewareData.arrow || null),\n\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t]);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProvider, {\n\t\tscope,\n\t\t...popperContext,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_floating.FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nvar PopperAnchor = (0, import_core.createStyledHOC)(import_core.View, function PopperAnchor2(props, forwardedRef) {\n\tvar { virtualRef, scope, ...rest } = props;\n\tvar context = usePopperContextSlow(scope);\n\tvar { getReferenceProps, refs, update } = context;\n\tvar ref = React.useRef(null);\n\tvar triggerId = React.useId();\n\tReact.useEffect(function() {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!_instanceof(ref.current, Element)) return;\n\t\tvar el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn function() {\n\t\t\tvar _context_triggerElements;\n\t\t\t(_context_triggerElements = context.triggerElements) === null || _context_triggerElements === void 0 || _context_triggerElements.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(function() {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tvar refProps = (getReferenceProps === null || getReferenceProps === void 0 ? void 0 : getReferenceProps({\n\t\t...rest,\n\t\tref\n\t})) || null;\n\tvar safeSetReference = React.useCallback(\n\t\tfunction(node) {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\trefs.setReference(node);\n\t\t\t});\n\t\t},\n\t\t// it was refs.setRefernce but its stable and refs is undefined on server\n\t\t[refs]\n\t);\n\tvar shouldHandleInHover = import_constants.isWeb && scope;\n\tvar composedRefs = (0, import_compose_refs.useComposedRefs)(\n\t\tforwardedRef,\n\t\tref,\n\t\t// web handles this onMouseEnter below so it can support multiple targets + hovering\n\t\tshouldHandleInHover ? void 0 : safeSetReference\n\t);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: function(e) {\n\t\t\t\tvar _e_currentTarget;\n\t\t\t\tvar el = (_e_currentTarget = e.currentTarget) !== null && _e_currentTarget !== void 0 ? _e_currentTarget : ref.current;\n\t\t\t\tif (_instanceof(el, HTMLElement)) {\n\t\t\t\t\tvar _refProps_onPointerEnter, _context_onHoverReference;\n\t\t\t\t\t(0, import_react_dom.flushSync)(function() {\n\t\t\t\t\t\treturn refs.setReference(el);\n\t\t\t\t\t});\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\t(_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e);\n\t\t\t\t\t(_context_onHoverReference = context.onHoverReference) === null || _context_onHoverReference === void 0 || _context_onHoverReference.call(context, e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: function(e) {\n\t\t\t\tvar _context_onLeaveReference, _refProps_onMouseLeave;\n\t\t\t\t(_context_onLeaveReference = context.onLeaveReference) === null || _context_onLeaveReference === void 0 || _context_onLeaveReference.call(context);\n\t\t\t\trefProps === null || refProps === void 0 || (_refProps_onMouseLeave = refProps.onMouseLeave) == null || _refProps_onMouseLeave.call(refProps, e);\n\t\t\t}\n\t\t}\n\t});\n});\nvar PopperContentFrame = (0, import_core.styled)(import_core.View, { displayName: \"PopperContent\" });\nvar PopperContent = (0, import_core.createRefComponent)(function PopperContent2(props, forwardedRef) {\n\tvar isAnimatePosControlled = \"animatePosition\" in props;\n\tvar { scope, animatePosition, children, passThrough, ...rest } = props;\n\tvar animatePos = animatePosition;\n\tvar context = usePopperContext(scope);\n\tvar { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tvar updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tvar lastNodeRef = React.useRef(null);\n\tvar safeSetFloating = React.useCallback(\n\t\tfunction(node) {\n\t\t\tvar isNewNode = node !== lastNodeRef.current;\n\t\t\tif (node) {\n\t\t\t\tlastNodeRef.current = node;\n\t\t\t\trefs.setFloating(node);\n\t\t\t\tif (!isNewNode) {\n\t\t\t\t\tvar _updateRef_current;\n\t\t\t\t\t(_updateRef_current = updateRef.current) === null || _updateRef_current === void 0 || _updateRef_current.call(updateRef);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t// null calls are blocked: cycling nulls are transient, genuine unmount\n\t\t// is handled by the useEffect cleanup below\n\t\t[refs.setFloating]\n\t);\n\tReact.useEffect(function() {\n\t\treturn function() {\n\t\t\tvar ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tvar contentRefs = (0, import_compose_refs.useComposedRefs)(safeSetFloating, forwardedRef);\n\tvar [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tvar hasBeenPositioned = React.useRef(false);\n\tvar lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tvar brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tvar effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tvar effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tvar hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tvar disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tvar [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(function() {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tvar frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : (\n\t\t// omit x/y when hiding - prevents motion driver from animating from origin\n\t\t{\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t}),\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tvar { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tvar transformOriginStyle = import_constants.isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nvar PopperArrowFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nvar PopperArrowOuterFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nvar opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nvar PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(propsIn, forwardedRef) {\n\tvar _context_arrowStyle, _context_arrowStyle1;\n\tvar isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tvar { scope, animatePosition, transition, ...rest } = propsIn;\n\tvar { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tvar context = usePopperContext(scope);\n\tvar _ref;\n\tvar sizeVal = typeof sizeProp === \"number\" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)((_ref = sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size) !== null && _ref !== void 0 ? _ref : true)) * .52 - 11.5;\n\tvar size = Math.max(0, +sizeVal);\n\tvar { placement } = context;\n\tvar refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);\n\tvar x = ((_context_arrowStyle = context.arrowStyle) === null || _context_arrowStyle === void 0 ? void 0 : _context_arrowStyle.x) || 0;\n\tvar y = ((_context_arrowStyle1 = context.arrowStyle) === null || _context_arrowStyle1 === void 0 ? void 0 : _context_arrowStyle1.y) || 0;\n\tvar arrowPositioned = context.arrowStyle != null;\n\tvar primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tvar arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tvar innerArrowStyle = {};\n\tvar isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tvar oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t\tvar _context_onArrowSize;\n\t\t\t(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWid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SAAS;IAChC,mBAAmB;IACnB,kBAAkB;GACnB;GACA,GAAG,qBAAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/popper",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.889.1",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"files": [
|
|
6
6
|
"src",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"clean:build": "tamagui-build clean:build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@tamagui/compose-refs": "3.0.0-beta.
|
|
38
|
-
"@tamagui/constants": "3.0.0-beta.
|
|
39
|
-
"@tamagui/core": "3.0.0-beta.
|
|
40
|
-
"@tamagui/floating": "3.0.0-beta.
|
|
41
|
-
"@tamagui/get-token": "3.0.0-beta.
|
|
42
|
-
"@tamagui/start-transition": "3.0.0-beta.
|
|
43
|
-
"@tamagui/use-controllable-state": "3.0.0-beta.
|
|
37
|
+
"@tamagui/compose-refs": "3.0.0-beta.889.1",
|
|
38
|
+
"@tamagui/constants": "3.0.0-beta.889.1",
|
|
39
|
+
"@tamagui/core": "3.0.0-beta.889.1",
|
|
40
|
+
"@tamagui/floating": "3.0.0-beta.889.1",
|
|
41
|
+
"@tamagui/get-token": "3.0.0-beta.889.1",
|
|
42
|
+
"@tamagui/start-transition": "3.0.0-beta.889.1",
|
|
43
|
+
"@tamagui/use-controllable-state": "3.0.0-beta.889.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@tamagui/build": "3.0.0-beta.
|
|
46
|
+
"@tamagui/build": "3.0.0-beta.889.1",
|
|
47
47
|
"react": "19.2.3",
|
|
48
48
|
"react-native": "0.86.2"
|
|
49
49
|
},
|
package/src/Popper.tsx
CHANGED
|
@@ -921,7 +921,8 @@ export const PopperArrow = createRefComponent<TamaguiElement, PopperArrowProps>(
|
|
|
921
921
|
const sizeVal =
|
|
922
922
|
typeof sizeProp === 'number'
|
|
923
923
|
? sizeProp
|
|
924
|
-
: (getVariableValue(getSize(sizeProp ?? context.size)) as number) * 0.52 -
|
|
924
|
+
: (getVariableValue(getSize(sizeProp ?? context.size ?? true)) as number) * 0.52 -
|
|
925
|
+
11.5
|
|
925
926
|
|
|
926
927
|
const size = Math.max(0, +sizeVal)
|
|
927
928
|
|
package/types/Popper.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export type PopperAnchorExtraProps = {
|
|
|
116
116
|
scope?: string;
|
|
117
117
|
};
|
|
118
118
|
export type PopperAnchorProps = ViewProps;
|
|
119
|
-
export declare const PopperAnchor: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}>, keyof PopperAnchorExtraProps> & PopperAnchorExtraProps,
|
|
119
|
+
export declare const PopperAnchor: import("@tamagui/core").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}>, keyof PopperAnchorExtraProps> & PopperAnchorExtraProps, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & PopperAnchorExtraProps, import("@tamagui/core").StackStyleBase, {}, {}>;
|
|
120
120
|
export type PopperContentProps = ViewProps & {
|
|
121
121
|
scope?: string;
|
|
122
122
|
/**
|
package/types/Popper.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../src/Popper.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AA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