@tamagui/popper 2.6.1 → 2.6.2
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 +24 -0
- package/dist/cjs/Popper.native.js +26 -0
- package/dist/cjs/Popper.native.js.map +1 -1
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/esm/Popper.mjs +24 -0
- package/dist/esm/Popper.mjs.map +1 -1
- package/dist/esm/Popper.native.js +26 -0
- package/dist/esm/Popper.native.js.map +1 -1
- package/dist/jsx/Popper.mjs +24 -0
- package/dist/jsx/Popper.mjs.map +1 -1
- package/dist/jsx/Popper.native.js +26 -0
- package/dist/jsx/Popper.native.js.map +1 -1
- package/package.json +10 -10
- package/src/Popper.tsx +29 -0
- package/types/Popper.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["jsx","flushSync","useComposedRefs","isWeb","useIsomorphicLayoutEffect","LayoutMeasurementController","View","createStyledContext","getVariableValue","registerLayoutNode","styled","FloatingOverrideContext","arrow","flip","getOverflowAncestors","offset","platform","shift","useFloating","getSpace","YStack","startTransition","React","Keyboard","useWindowDimensions","_instanceof","left","right","Symbol","hasInstance","_type_of","obj","constructor","PopperContextFast","PopperPositionContext","useStyledContext","usePopperContext","Provider","PopperProviderFast","PopperContextSlow","usePopperContextSlow","PopperProviderSlow","PopperProvider","param","scope","children","context","fns","useRef","current","slowContext","useState","refs","triggerElements","update","_len","arguments","length","a","Array","_key","getReferenceProps","p","_fns_current_getReferenceProps","_fns_current","call","onHoverReference","e","_fns_current_onHoverReference","onLeaveReference","_fns_current_onLeaveReference","checkFloating","name","fn","data","hasFloating","rects","floating","width","setupOptions","setupPopper","options","Object","assign","tamaguiAutoUpdate","reference","rafId","requestAnimationFrame","cleanups","cancelAnimationFrame","HTMLElement","push","ancestors","Element","uniqueAncestors","Set","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","iterator","_step","next","done","value","addEventListener","passive","err","return","window","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","_step2","removeEventListener","forEach","Popper","props","size","strategy","placement","stayInFrame","allowFlip","offset$1","disableRTL","resize","passThrough","open","arrowEl","setArrow","arrowSize","setArrowSize","offsetOptions","isOpen","middlewareRef","padding","mainAxis","crossAxis","element","filter","Boolean","sameScrollView","whileElementsMounted","isRTL","middleware","middlewareData","dimensions","keyboardOpen","setKeyboardOpen","useEffect","showSubscription","addListener","hideSubscription","remove","useMemo","_middlewareData_checkFloating","arrowRef","arrowStyle","onArrowSize","transformOrigin","JSON","stringify","PopperAnchor","styleable","PopperAnchor2","forwardedRef","virtualRef","rest","ref","triggerId","useId","el","add","_context_triggerElements","delete","setReference","refProps","safeSetReference","useCallback","node","shouldHandleInHover","composedRefs","onMouseEnter","_e_currentTarget","currentTarget","_refProps_onPointerEnter","_context_onHoverReference","onPointerEnter","nativeEvent","onMouseLeave","_context_onLeaveReference","_refProps_onMouseLeave","PopperContentFrame","variants","unstyled","true","...size","val","tokens","space","borderRadius","radius","PopperContent","forwardRef","PopperContent2","isAnimatePosControlled","animatePosition","enableAnimationForPositionChange","animatePos","x","y","getFloatingProps","isPositioned","updateRef","lastNodeRef","safeSetFloating","isNewNode","setFloating","_updateRef_current","ourNode","contentRefs","needsMeasure","setNeedsMeasure","hasBeenPositioned","lastGoodPosition","brieflyZero","effectiveX","effectiveY","hide","disableAnimationProp","disableAnimation","setDisableAnimation","frameProps","top","position","opacity","transition","animateOnly","animatePresence","style","floatingProps","transformOriginStyle","disable","direction","PopperArrowFrame","false","borderColor","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","PopperArrowOuterFrame","zIndex","pointerEvents","overflow","alignItems","justifyContent","opposites","bottom","PopperArrow","PopperArrow2","propsIn","_context_arrowStyle","_context_arrowStyle1","sizeProp","borderWidth","arrowProps","sizeVal","bounds","Math","max","arrowPositioned","primaryPlacement","split","height","innerArrowStyle","isVertical","oppSide","_context_onArrowSize","rotate","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"],"sources":["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, createStyledContext, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, useFloating } from \"@tamagui/floating\";\nimport { getSpace } from \"@tamagui/get-token\";\nimport { YStack } from \"@tamagui/stacks\";\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\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 = YStack.styleable(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(YStack, {\n\tname: \"PopperContent\",\n\tvariants: {\n\t\tunstyled: { true: {} },\n\t\tsize: { \"...size\": function(val, param) {\n\t\t\tvar { tokens } = param;\n\t\t\treturn {\n\t\t\t\tpadding: tokens.space[val],\n\t\t\t\tborderRadius: tokens.radius[val]\n\t\t\t};\n\t\t} }\n\t}\n});\nvar PopperContent = /* @__PURE__ */ React.forwardRef(function PopperContent2(props, forwardedRef) {\n\tvar isAnimatePosControlled = \"animatePosition\" in props || \"enableAnimationForPositionChange\" in props;\n\tvar { scope, animatePosition, enableAnimationForPositionChange, children, passThrough, unstyled, ...rest } = props;\n\tvar animatePos = animatePosition !== null && animatePosition !== void 0 ? animatePosition : enableAnimationForPositionChange;\n\tvar context = usePopperContext(scope);\n\tvar { strategy, placement, refs, x, y, getFloatingProps, size, 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\tunstyled,\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\tsize,\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(YStack, {\n\tname: \"PopperArrow\",\n\tvariants: { unstyled: { false: {\n\t\tborderColor: \"$borderColor\",\n\t\tbackgroundColor: \"$background\",\n\t\tposition: \"relative\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nvar PopperArrowOuterFrame = styled(YStack, {\n\tname: \"PopperArrowOuter\",\n\tvariants: { unstyled: { false: {\n\t\tposition: \"absolute\",\n\t\tzIndex: 1e6,\n\t\tpointerEvents: \"none\",\n\t\toverflow: \"hidden\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nvar opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nvar PopperArrow = /* @__PURE__ */ React.forwardRef(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(getSpace(sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size, {\n\t\tshift: -2,\n\t\tbounds: [2]\n\t}));\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":"AAAA,SAASA,GAAG,QAAQ,mBAAmB;AACvC,SAASC,SAAS,QAAQ,WAAW;AACrC,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAASC,KAAK,EAAEC,yBAAyB,QAAQ,oBAAoB;AACrE,SAASC,2BAA2B,EAAEC,IAAI,EAAEC,mBAAmB,EAAEC,gBAAgB,EAAEC,kBAAkB,EAAEC,MAAM,QAAQ,eAAe;AACpI,SAASC,uBAAuB,EAAEC,KAAK,EAAEC,IAAI,EAAEC,oBAAoB,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,WAAW,QAAQ,mBAAmB;AACpI,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,eAAe,QAAQ,2BAA2B;AAC3D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,mBAAmB,QAAQ,cAAc;AAE5D,SAASC,WAAWA,CAACC,IAAI,EAAEC,KAAK,EAAE;EACjC,IAAIA,KAAK,IAAI,IAAI,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAID,KAAK,CAACC,MAAM,CAACC,WAAW,CAAC,EAAE,OAAO,CAAC,CAACF,KAAK,CAACC,MAAM,CAACC,WAAW,CAAC,CAACH,IAAI,C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EAAE9B,eAAe,GAAG8B,UAAU,GAAG,KAAK,CAAC;MACjDC,WAAW,EAAE/B,eAAe,GAAG,CAAC,WAAW,CAAC,GAAG,EAAE;MACjDgC,eAAe,EAAE;IAClB,CAAC;IACDlM,QAAQ,EAAE,eAAgB7C,GAAG,CAACqP,gBAAgB,EAAE;MAC/CvK,KAAK,EAAEyC,IAAI;MACX6J,MAAM,EAAE7J,IAAI;MACZ,GAAGqJ,UAAU;MACb,GAAGS,eAAe;MAClBI,MAAM,EAAE,OAAO;MACf,IAAGP,gBAAgB,KAAK,QAAQ,IAAI;QACnCQ,eAAe,EAAEf,WAAW;QAC5BgB,cAAc,EAAEhB;MACjB,CAAC;MACD,IAAGO,gBAAgB,KAAK,KAAK,IAAI;QAChCU,iBAAiB,EAAEjB,WAAW;QAC9BkB,gBAAgB,EAAElB;MACnB,CAAC;MACD,IAAGO,gBAAgB,KAAK,OAAO,IAAI;QAClCQ,eAAe,EAAEf,WAAW;QAC5BiB,iBAAiB,EAAEjB;MACpB,CAAC;MACD,IAAGO,gBAAgB,KAAK,MAAM,IAAI;QACjCS,cAAc,EAAEhB,WAAW;QAC3BkB,gBAAgB,EAAElB;MACnB,CAAC;IACF,CAAC;EACF,CAAC,CAAC;AACH,CAAC,CAAC;AAEF,SAAStJ,MAAM,EAAE8C,YAAY,EAAEkG,WAAW,EAAEhB,gBAAgB,EAAE1C,aAAa,EAAEV,kBAAkB,EAAEhK,iBAAiB,EAAEM,iBAAiB,EAAEL,qBAAqB,EAAEQ,cAAc,EAAEJ,kBAAkB,EAAEG,kBAAkB,EAAEuC,WAAW,EAAE5C,gBAAgB,EAAEI,oBAAoB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["jsx","flushSync","useComposedRefs","isWeb","useIsomorphicLayoutEffect","LayoutMeasurementController","View","createStyledContext","getVariableValue","registerLayoutNode","styled","FloatingOverrideContext","arrow","flip","getOverflowAncestors","offset","platform","shift","useFloating","getSpace","YStack","startTransition","React","Keyboard","useWindowDimensions","_instanceof","left","right","Symbol","hasInstance","_type_of","obj","constructor","PopperContextFast","PopperPositionContext","useStyledContext","usePopperContext","Provider","PopperProviderFast","PopperContextSlow","usePopperContextSlow","PopperProviderSlow","PopperProvider","param","scope","children","context","fns","useRef","current","slowContext","useState","refs","triggerElements","update","_len","arguments","length","a","Array","_key","getReferenceProps","p","_fns_current_getReferenceProps","_fns_current","call","onHoverReference","e","_fns_current_onHoverReference","onLeaveReference","_fns_current_onLeaveReference","checkFloating","name","fn","data","hasFloating","rects","floating","width","setupOptions","setupPopper","options","Object","assign","tamaguiAutoUpdate","reference","rafId","requestAnimationFrame","cleanups","cancelAnimationFrame","HTMLElement","push","ResizeObserver","lastWidth","lastHeight","ro","entries","entry","height","contentRect","observe","disconnect","ancestors","Element","uniqueAncestors","Set","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","iterator","_step","next","done","value","addEventListener","passive","err","return","window","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","_step2","removeEventListener","forEach","Popper","props","size","strategy","placement","stayInFrame","allowFlip","offset$1","disableRTL","resize","passThrough","open","arrowEl","setArrow","arrowSize","setArrowSize","offsetOptions","isOpen","middlewareRef","padding","mainAxis","crossAxis","element","filter","Boolean","sameScrollView","whileElementsMounted","isRTL","middleware","middlewareData","dimensions","keyboardOpen","setKeyboardOpen","useEffect","showSubscription","addListener","hideSubscription","remove","useMemo","_middlewareData_checkFloating","arrowRef","arrowStyle","onArrowSize","transformOrigin","JSON","stringify","PopperAnchor","styleable","PopperAnchor2","forwardedRef","virtualRef","rest","ref","triggerId","useId","el","add","_context_triggerElements","delete","setReference","refProps","safeSetReference","useCallback","node","shouldHandleInHover","composedRefs","onMouseEnter","_e_currentTarget","currentTarget","_refProps_onPointerEnter","_context_onHoverReference","onPointerEnter","nativeEvent","onMouseLeave","_context_onLeaveReference","_refProps_onMouseLeave","PopperContentFrame","variants","unstyled","true","...size","val","tokens","space","borderRadius","radius","PopperContent","forwardRef","PopperContent2","isAnimatePosControlled","animatePosition","enableAnimationForPositionChange","animatePos","x","y","getFloatingProps","isPositioned","updateRef","lastNodeRef","safeSetFloating","isNewNode","setFloating","_updateRef_current","ourNode","contentRefs","needsMeasure","setNeedsMeasure","hasBeenPositioned","lastGoodPosition","brieflyZero","effectiveX","effectiveY","hide","disableAnimationProp","disableAnimation","setDisableAnimation","frameProps","top","position","opacity","transition","animateOnly","animatePresence","style","floatingProps","transformOriginStyle","disable","direction","PopperArrowFrame","false","borderColor","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","PopperArrowOuterFrame","zIndex","pointerEvents","overflow","alignItems","justifyContent","opposites","bottom","PopperArrow","PopperArrow2","propsIn","_context_arrowStyle","_context_arrowStyle1","sizeProp","borderWidth","arrowProps","sizeVal","bounds","Math","max","arrowPositioned","primaryPlacement","split","innerArrowStyle","isVertical","oppSide","_context_onArrowSize","rotate","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"],"sources":["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, createStyledContext, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, useFloating } from \"@tamagui/floating\";\nimport { getSpace } from \"@tamagui/get-token\";\nimport { YStack } from \"@tamagui/stacks\";\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 = YStack.styleable(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(YStack, {\n\tname: \"PopperContent\",\n\tvariants: {\n\t\tunstyled: { true: {} },\n\t\tsize: { \"...size\": function(val, param) {\n\t\t\tvar { tokens } = param;\n\t\t\treturn {\n\t\t\t\tpadding: tokens.space[val],\n\t\t\t\tborderRadius: tokens.radius[val]\n\t\t\t};\n\t\t} }\n\t}\n});\nvar PopperContent = /* @__PURE__ */ React.forwardRef(function PopperContent2(props, forwardedRef) {\n\tvar isAnimatePosControlled = \"animatePosition\" in props || \"enableAnimationForPositionChange\" in props;\n\tvar { scope, animatePosition, enableAnimationForPositionChange, children, passThrough, unstyled, ...rest } = props;\n\tvar animatePos = animatePosition !== null && animatePosition !== void 0 ? animatePosition : enableAnimationForPositionChange;\n\tvar context = usePopperContext(scope);\n\tvar { strategy, placement, refs, x, y, getFloatingProps, size, 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\tunstyled,\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\tsize,\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(YStack, {\n\tname: \"PopperArrow\",\n\tvariants: { unstyled: { false: {\n\t\tborderColor: \"$borderColor\",\n\t\tbackgroundColor: \"$background\",\n\t\tposition: \"relative\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nvar PopperArrowOuterFrame = styled(YStack, {\n\tname: \"PopperArrowOuter\",\n\tvariants: { unstyled: { false: {\n\t\tposition: \"absolute\",\n\t\tzIndex: 1e6,\n\t\tpointerEvents: \"none\",\n\t\toverflow: \"hidden\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nvar opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nvar PopperArrow = /* @__PURE__ */ React.forwardRef(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(getSpace(sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size, {\n\t\tshift: -2,\n\t\tbounds: [2]\n\t}));\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":"AAAA,SAASA,GAAG,QAAQ,mBAAmB;AACvC,SAASC,SAAS,QAAQ,WAAW;AACrC,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAASC,KAAK,EAAEC,yBAAyB,QAAQ,oBAAoB;AACrE,SAASC,2BAA2B,EAAEC,IAAI,EAAEC,mBAAmB,EAAEC,gBAAgB,EAAEC,kBAAkB,EAAEC,MAAM,QAAQ,eAAe;AACpI,SAASC,uBAAuB,EAAEC,KAAK,EAAEC,IAAI,EAAEC,oBAAoB,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,WAAW,QAAQ,mBAAmB;AACpI,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,eAAe,QAAQ,2BAA2B;AAC3D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,QAAQ,EAAEC,mBAAmB,QAAQ,cAAc;AAE5D,SAASC,WAAWA,CAACC,IAAI,EAAEC,KAAK,EAAE;EACjC,IAAIA,KAAK,IAAI,IAAI,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAID,KAAK,CAACC,MAAM,CAACC,WAAW,CAAC,EAAE,OAAO,CAAC,CAACF,KAAK,CAACC,MAAM,CAACC,WAAW,CAAC,CAACH,IAAI,CAAC,CAAC,KACrH,OAAOA,IAAI,YAAYC,KAAK;AAClC;AACA,SAASG,QAAQA,CAACC,GAAG,EAAE;EACtB,uBAAuB;;EACvB,OAAOA,GAAG,IAAI,OAAOH,MAAM,KAAK,WAAW,IAAIG,GAAG,CAACC,WAAW,KAAKJ,MAAM,GAAG,QAAQ,GAAG,OAAO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O,gBAAgB,KAAK,MAAM,IAAI;QACjCQ,cAAc,EAAEf,WAAW;QAC3BiB,gBAAgB,EAAEjB;MACnB,CAAC;IACF,CAAC;EACF,CAAC,CAAC;AACH,CAAC,CAAC;AAEF,SAAStJ,MAAM,EAAE8C,YAAY,EAAEkG,WAAW,EAAEhB,gBAAgB,EAAE1C,aAAa,EAAEV,kBAAkB,EAAE1K,iBAAiB,EAAEM,iBAAiB,EAAEL,qBAAqB,EAAEQ,cAAc,EAAEJ,kBAAkB,EAAEG,kBAAkB,EAAEuC,WAAW,EAAE5C,gBAAgB,EAAEI,oBAAoB","ignoreList":[]}
|
package/dist/jsx/Popper.mjs
CHANGED
|
@@ -114,6 +114,30 @@ function tamaguiAutoUpdate(reference, floating, update) {
|
|
|
114
114
|
if (rafId) cancelAnimationFrame(rafId);
|
|
115
115
|
}];
|
|
116
116
|
if (reference instanceof HTMLElement) cleanups.push(registerLayoutNode(reference, update));
|
|
117
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
118
|
+
let lastWidth = -1;
|
|
119
|
+
let lastHeight = -1;
|
|
120
|
+
const ro = new ResizeObserver(entries => {
|
|
121
|
+
const entry = entries[entries.length - 1];
|
|
122
|
+
if (!entry) return;
|
|
123
|
+
const {
|
|
124
|
+
width,
|
|
125
|
+
height
|
|
126
|
+
} = entry.contentRect;
|
|
127
|
+
if (lastWidth === -1) {
|
|
128
|
+
lastWidth = width;
|
|
129
|
+
lastHeight = height;
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
if (width !== lastWidth || height !== lastHeight) {
|
|
133
|
+
lastWidth = width;
|
|
134
|
+
lastHeight = height;
|
|
135
|
+
update();
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
ro.observe(floating);
|
|
139
|
+
cleanups.push(() => ro.disconnect());
|
|
140
|
+
}
|
|
117
141
|
const ancestors = [...(reference instanceof Element ? getOverflowAncestors(reference) : []), ...getOverflowAncestors(floating)];
|
|
118
142
|
const uniqueAncestors = [...new Set(ancestors)];
|
|
119
143
|
for (const ancestor of uniqueAncestors) ancestor.addEventListener("scroll", update, {
|
package/dist/jsx/Popper.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["flushSync","useComposedRefs","isWeb","useIsomorphicLayoutEffect","LayoutMeasurementController","View","createStyledContext","getVariableValue","registerLayoutNode","styled","FloatingOverrideContext","arrow","flip","getOverflowAncestors","offset","platform","shift","size","useFloating","getSpace","YStack","startTransition","React","jsx","PopperContextFast","PopperPositionContext","useStyledContext","usePopperContext","Provider","PopperProviderFast","PopperContextSlow","usePopperContextSlow","PopperProviderSlow","PopperProvider","scope","children","context","fns","useRef","current","slowContext","useState","refs","triggerElements","update","a","getReferenceProps","p","onHoverReference","e","onLeaveReference","checkFloating","setupOptions","setupPopper","options","Object","assign","getSideAndAlignFromPlacement","placement","side","align","split","transformOriginMiddleware","name","fn","data","rects","middlewareData","isArrowHidden","centerOffset","arrowWidth","arrowHeight","placedSide","placedAlign","noArrowAlign","start","center","end","arrowXCenter","x","arrowYCenter","y","floating","height","width","tamaguiAutoUpdate","reference","rafId","requestAnimationFrame","cleanups","cancelAnimationFrame","HTMLElement","push","ancestors","Element","uniqueAncestors","Set","ancestor","addEventListener","passive","window","removeEventListener","forEach","Popper","props","size$1","strategy","stayInFrame","allowFlip","offset$1","disableRTL","resize","passThrough","open","arrowEl","setArrow","arrowSize","setArrowSize","offsetOptions","floatingStyle","isOpen","middlewareRef","padding","mainAxis","crossAxis","element","apply","availableHeight","availableWidth","maxHeight","maxWidth","floatingChild","firstChild","style","elements","anchorWidth","anchorHeight","contentStyle","setProperty","filter","Boolean","sameScrollView","whileElementsMounted","isRTL","middleware","useMemo","og","getFloatingProps","props2","JSON","stringify","arrowRef","arrowStyle","onArrowSize","hasFloating","transformOrigin","value","PopperAnchor","styleable","PopperAnchor2","forwardedRef","virtualRef","rest","ref","triggerId","useId","useEffect","el","add","delete","setReference","refProps","safeSetReference","useCallback","node","shouldHandleInHover","composedRefs","onMouseEnter","currentTarget","onPointerEnter","nativeEvent","onMouseLeave","PopperContentFrame","variants","unstyled","true","...size","val","tokens","space","borderRadius","radius","PopperContent","forwardRef","PopperContent2","isAnimatePosControlled","animatePosition","enableAnimationForPositionChange","animatePos","isPositioned","updateRef","lastNodeRef","safeSetFloating","isNewNode","setFloating","ourNode","contentRefs","needsMeasure","setNeedsMeasure","hasBeenPositioned","lastGoodPosition","brieflyZero","effectiveX","effectiveY","hide","disableAnimationProp","disableAnimation","setDisableAnimation","frameProps","top","left","position","opacity","transition","animateOnly","animatePresence","floatingProps","transformOriginStyle","disable","direction","PopperArrowFrame","false","borderColor","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","PopperArrowOuterFrame","zIndex","pointerEvents","overflow","alignItems","justifyContent","opposites","right","bottom","PopperArrow","PopperArrow2","propsIn","sizeProp","borderWidth","arrowProps","sizeVal","bounds","Math","max","arrowPositioned","primaryPlacement","innerArrowStyle","isVertical","oppSide","rotate","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"],"sources":["Popper.mjs"],"sourcesContent":["import { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createStyledContext, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, size, useFloating } from \"@tamagui/floating\";\nimport { getSpace } from \"@tamagui/get-token\";\nimport { YStack } from \"@tamagui/stacks\";\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\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 = YStack.styleable(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(YStack, {\n\tname: \"PopperContent\",\n\tvariants: {\n\t\tunstyled: { true: {} },\n\t\tsize: { \"...size\": (val, { tokens }) => {\n\t\t\treturn {\n\t\t\t\tpadding: tokens.space[val],\n\t\t\t\tborderRadius: tokens.radius[val]\n\t\t\t};\n\t\t} }\n\t}\n});\nconst PopperContent = React.forwardRef(function PopperContent2(props, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in props || \"enableAnimationForPositionChange\" in props;\n\tconst { scope, animatePosition, enableAnimationForPositionChange, children, passThrough, unstyled, ...rest } = props;\n\tconst animatePos = animatePosition ?? enableAnimationForPositionChange;\n\tconst context = usePopperContext(scope);\n\tconst { strategy, placement, refs, x, y, getFloatingProps, size, 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\tunstyled,\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\tsize,\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(YStack, {\n\tname: \"PopperArrow\",\n\tvariants: { unstyled: { false: {\n\t\tborderColor: \"$borderColor\",\n\t\tbackgroundColor: \"$background\",\n\t\tposition: \"relative\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nconst PopperArrowOuterFrame = styled(YStack, {\n\tname: \"PopperArrowOuter\",\n\tvariants: { unstyled: { false: {\n\t\tposition: \"absolute\",\n\t\tzIndex: 1e6,\n\t\tpointerEvents: \"none\",\n\t\toverflow: \"hidden\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nconst opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nconst PopperArrow = React.forwardRef(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(getSpace(sizeProp ?? context.size, {\n\t\tshift: -2,\n\t\tbounds: [2]\n\t}));\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, Popper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B,gBAAgB,EAAEI,oBAAoB","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["flushSync","useComposedRefs","isWeb","useIsomorphicLayoutEffect","LayoutMeasurementController","View","createStyledContext","getVariableValue","registerLayoutNode","styled","FloatingOverrideContext","arrow","flip","getOverflowAncestors","offset","platform","shift","size","useFloating","getSpace","YStack","startTransition","React","jsx","PopperContextFast","PopperPositionContext","useStyledContext","usePopperContext","Provider","PopperProviderFast","PopperContextSlow","usePopperContextSlow","PopperProviderSlow","PopperProvider","scope","children","context","fns","useRef","current","slowContext","useState","refs","triggerElements","update","a","getReferenceProps","p","onHoverReference","e","onLeaveReference","checkFloating","setupOptions","setupPopper","options","Object","assign","getSideAndAlignFromPlacement","placement","side","align","split","transformOriginMiddleware","name","fn","data","rects","middlewareData","isArrowHidden","centerOffset","arrowWidth","arrowHeight","placedSide","placedAlign","noArrowAlign","start","center","end","arrowXCenter","x","arrowYCenter","y","floating","height","width","tamaguiAutoUpdate","reference","rafId","requestAnimationFrame","cleanups","cancelAnimationFrame","HTMLElement","push","ResizeObserver","lastWidth","lastHeight","ro","entries","entry","length","contentRect","observe","disconnect","ancestors","Element","uniqueAncestors","Set","ancestor","addEventListener","passive","window","removeEventListener","forEach","Popper","props","size$1","strategy","stayInFrame","allowFlip","offset$1","disableRTL","resize","passThrough","open","arrowEl","setArrow","arrowSize","setArrowSize","offsetOptions","floatingStyle","isOpen","middlewareRef","padding","mainAxis","crossAxis","element","apply","availableHeight","availableWidth","maxHeight","maxWidth","floatingChild","firstChild","style","elements","anchorWidth","anchorHeight","contentStyle","setProperty","filter","Boolean","sameScrollView","whileElementsMounted","isRTL","middleware","useMemo","og","getFloatingProps","props2","JSON","stringify","arrowRef","arrowStyle","onArrowSize","hasFloating","transformOrigin","value","PopperAnchor","styleable","PopperAnchor2","forwardedRef","virtualRef","rest","ref","triggerId","useId","useEffect","el","add","delete","setReference","refProps","safeSetReference","useCallback","node","shouldHandleInHover","composedRefs","onMouseEnter","currentTarget","onPointerEnter","nativeEvent","onMouseLeave","PopperContentFrame","variants","unstyled","true","...size","val","tokens","space","borderRadius","radius","PopperContent","forwardRef","PopperContent2","isAnimatePosControlled","animatePosition","enableAnimationForPositionChange","animatePos","isPositioned","updateRef","lastNodeRef","safeSetFloating","isNewNode","setFloating","ourNode","contentRefs","needsMeasure","setNeedsMeasure","hasBeenPositioned","lastGoodPosition","brieflyZero","effectiveX","effectiveY","hide","disableAnimationProp","disableAnimation","setDisableAnimation","frameProps","top","left","position","opacity","transition","animateOnly","animatePresence","floatingProps","transformOriginStyle","disable","direction","PopperArrowFrame","false","borderColor","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","PopperArrowOuterFrame","zIndex","pointerEvents","overflow","alignItems","justifyContent","opposites","right","bottom","PopperArrow","PopperArrow2","propsIn","sizeProp","borderWidth","arrowProps","sizeVal","bounds","Math","max","arrowPositioned","primaryPlacement","innerArrowStyle","isVertical","oppSide","rotate","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"],"sources":["Popper.mjs"],"sourcesContent":["import { flushSync } from \"react-dom\";\nimport { useComposedRefs } from \"@tamagui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@tamagui/constants\";\nimport { LayoutMeasurementController, View, createStyledContext, getVariableValue, registerLayoutNode, styled } from \"@tamagui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, size, useFloating } from \"@tamagui/floating\";\nimport { getSpace } from \"@tamagui/get-token\";\nimport { YStack } from \"@tamagui/stacks\";\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 = YStack.styleable(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(YStack, {\n\tname: \"PopperContent\",\n\tvariants: {\n\t\tunstyled: { true: {} },\n\t\tsize: { \"...size\": (val, { tokens }) => {\n\t\t\treturn {\n\t\t\t\tpadding: tokens.space[val],\n\t\t\t\tborderRadius: tokens.radius[val]\n\t\t\t};\n\t\t} }\n\t}\n});\nconst PopperContent = React.forwardRef(function PopperContent2(props, forwardedRef) {\n\tconst isAnimatePosControlled = \"animatePosition\" in props || \"enableAnimationForPositionChange\" in props;\n\tconst { scope, animatePosition, enableAnimationForPositionChange, children, passThrough, unstyled, ...rest } = props;\n\tconst animatePos = animatePosition ?? enableAnimationForPositionChange;\n\tconst context = usePopperContext(scope);\n\tconst { strategy, placement, refs, x, y, getFloatingProps, size, 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\tunstyled,\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\tsize,\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(YStack, {\n\tname: \"PopperArrow\",\n\tvariants: { unstyled: { false: {\n\t\tborderColor: \"$borderColor\",\n\t\tbackgroundColor: \"$background\",\n\t\tposition: \"relative\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nconst PopperArrowOuterFrame = styled(YStack, {\n\tname: \"PopperArrowOuter\",\n\tvariants: { unstyled: { false: {\n\t\tposition: \"absolute\",\n\t\tzIndex: 1e6,\n\t\tpointerEvents: \"none\",\n\t\toverflow: \"hidden\",\n\t\talignItems: \"center\",\n\t\tjustifyContent: \"center\"\n\t} } },\n\tdefaultVariants: { unstyled: process.env.TAMAGUI_HEADLESS === \"1\" }\n});\nconst opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nconst PopperArrow = React.forwardRef(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(getSpace(sizeProp ?? context.size, {\n\t\tshift: -2,\n\t\tbounds: [2]\n\t}));\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":"AAAA,SAASA,SAAS,QAAQ,WAAW;AACrC,SAASC,eAAe,QAAQ,uBAAuB;AACvD,SAASC,KAAK,EAAEC,yBAAyB,QAAQ,oBAAoB;AACrE,SAASC,2BAA2B,EAAEC,IAAI,EAAEC,mBAAmB,EAAEC,gBAAgB,EAAEC,kBAAkB,EAAEC,MAAM,QAAQ,eAAe;AACpI,SAASC,uBAAuB,EAAEC,KAAK,EAAEC,IAAI,EAAEC,oBAAoB,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,IAAI,EAAEC,WAAW,QAAQ,mBAAmB;AAC1I,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,MAAM,QAAQ,iBAAiB;AACxC,SAASC,eAAe,QAAQ,2BAA2B;AAC3D,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,SAASC,GAAG,QAAQ,mBAAmB;AAEvC,MAAMC,iBAAiB,GAAGlB,mBAAmB,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC;AAC7D,MAAMmB,qBAAqB,GAAGnB,mBAAmB;AACjD,MAAM;EAAEoB,gBAAgB,EAAEC,gBAAgB;EAAEC,QAAQ,EAAEC;AAAmB,CAAC,GAAGL,iBAAiB;AAC9F,MAAMM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 +151,32 @@ function tamaguiAutoUpdate(reference, floating, update) {
|
|
|
151
151
|
if (rafId) cancelAnimationFrame(rafId);
|
|
152
152
|
}];
|
|
153
153
|
if (_instanceof(reference, HTMLElement)) cleanups.push((0, import_core.registerLayoutNode)(reference, update));
|
|
154
|
+
if (typeof ResizeObserver !== "undefined") {
|
|
155
|
+
var lastWidth = -1;
|
|
156
|
+
var lastHeight = -1;
|
|
157
|
+
var ro = new ResizeObserver(function (entries) {
|
|
158
|
+
var entry = entries[entries.length - 1];
|
|
159
|
+
if (!entry) return;
|
|
160
|
+
var {
|
|
161
|
+
width,
|
|
162
|
+
height
|
|
163
|
+
} = entry.contentRect;
|
|
164
|
+
if (lastWidth === -1) {
|
|
165
|
+
lastWidth = width;
|
|
166
|
+
lastHeight = height;
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (width !== lastWidth || height !== lastHeight) {
|
|
170
|
+
lastWidth = width;
|
|
171
|
+
lastHeight = height;
|
|
172
|
+
update();
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
ro.observe(floating);
|
|
176
|
+
cleanups.push(function () {
|
|
177
|
+
return ro.disconnect();
|
|
178
|
+
});
|
|
179
|
+
}
|
|
154
180
|
var ancestors = [...(_instanceof(reference, Element) ? (0, import_floating2.getOverflowAncestors)(reference) : []), ...(0, import_floating2.getOverflowAncestors)(floating)];
|
|
155
181
|
var uniqueAncestors = [...new Set(ancestors)];
|
|
156
182
|
var _iteratorNormalCompletion = true,
|