@tamagui/popper 2.7.7 → 3.0.0-beta.643.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"names":["__create","Object","create","__defProp","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__getProtoOf","getPrototypeOf","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toESM","mod","isNodeMode","__esModule","value","__toCommonJS","Popper_exports","Popper","PopperAnchor","PopperArrow","PopperArrowFrame","PopperContent","PopperContentFrame","PopperContextFast","PopperContextSlow","PopperPositionContext","PopperProvider","PopperProviderFast","PopperProviderSlow","setupPopper","usePopperContext","usePopperContextSlow","module","exports","import_jsx_runtime","require","import_react_dom","import_compose_refs","import_constants","import_core","import_floating","import_floating2","import_get_token","import_stacks","import_start_transition","React","import_react_native","_instanceof","left","right","Symbol","hasInstance","_type_of","obj","constructor","createStyledContext","useStyledContext","Provider","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","onHoverReference","e","_fns_current_onHoverReference","onLeaveReference","_fns_current_onLeaveReference","jsx","checkFloating","fn","data","hasFloating","rects","floating","width","setupOptions","options","assign","tamaguiAutoUpdate","reference","rafId","requestAnimationFrame","cleanups","cancelAnimationFrame","HTMLElement","push","registerLayoutNode","ResizeObserver","lastWidth","lastHeight","ro","entries","entry","height","contentRect","observe","disconnect","ancestors","Element","getOverflowAncestors","uniqueAncestors","Set","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","iterator","_step","next","done","addEventListener","passive","err","return","window","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","_step2","removeEventListener","forEach","props","size","strategy","placement","stayInFrame","allowFlip","offset","disableRTL","resize","passThrough","open","arrowEl","setArrow","arrowSize","setArrowSize","offsetOptions","isOpen","middlewareRef","flip","shift","padding","mainAxis","crossAxis","arrow","element","filter","Boolean","useFloating","sameScrollView","whileElementsMounted","platform","isRTL","middleware","middlewareData","dimensions","useWindowDimensions","keyboardOpen","setKeyboardOpen","useEffect","showSubscription","Keyboard","addListener","startTransition","hideSubscription","remove","useIsomorphicLayoutEffect","popperContext","useMemo","_middlewareData_checkFloating","arrowRef","arrowStyle","onArrowSize","transformOrigin","JSON","stringify","FloatingOverrideContext","YStack","styleable","PopperAnchor2","forwardedRef","virtualRef","rest","ref","triggerId","useId","el","add","_context_triggerElements","delete","setReference","refProps","safeSetReference","useCallback","node","shouldHandleInHover","isWeb","composedRefs","useComposedRefs","View","onMouseEnter","_e_currentTarget","currentTarget","_refProps_onPointerEnter","_context_onHoverReference","flushSync","onPointerEnter","nativeEvent","onMouseLeave","_context_onLeaveReference","_refProps_onMouseLeave","styled","variants","unstyled","true","...size","val","tokens","space","borderRadius","radius","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","LayoutMeasurementController","disable","direction","false","borderColor","backgroundColor","defaultVariants","process","env","TAMAGUI_HEADLESS","PopperArrowOuterFrame","zIndex","pointerEvents","overflow","alignItems","justifyContent","opposites","bottom","PopperArrow2","propsIn","_context_arrowStyle","_context_arrowStyle1","sizeProp","borderWidth","arrowProps","sizeVal","getVariableValue","getSpace","bounds","Math","max","arrowPositioned","primaryPlacement","split","innerArrowStyle","isVertical","oppSide","_context_onArrowSize","rotate","borderLeftWidth","borderTopWidth","borderBottomWidth","borderRightWidth"],"sources":["../../src/Pop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IAAA,IAAA2Q,OAEC,eAAAA,OAAA,cAAA7H,UAAA,CAAAgF,GAAA;IAAA,IAAAxO,gBAAA,CAAAmJ,yBAAA;MAAA,IAAAmI,oBAZG;MAAA,CAAAA,oBAaN,GAAA/P,OAAA,CAAAkI,WAAA,cAAA6H,oBAAA,eAAAA,oBAAA,CAAAnT,IAAA,CAAAoD,OAAA,EAAAgF,IAAA;IAAA,IAAAA,IAAA,EAAAhF,OAAA,CAAAkI,WAAA;EAAA;EAEJ,OAEJ,mBAAA7J,kBAAA,CAAAmD,GAAA,EAAA4M,qBAAA;IACFvF,GAAA,EAAAvI,IAAA;IAkBO,GAAA2H,UAAM;IACX,KAAAwH,eAAM;MAAAtC,OAAA;IAAA;IAEN,IAAA9B,sBAAU;MAAA+B,UACR,EAAU9B,eAAA,GAAA8B,UAAA;MAAAC,WACD,EAAA/B,eAAA;MAAAgC,eACL;IAAa;IACIvN,QACjB,iBAAU,IAAA1B,kBAAA,CAAAmD,GAAA,EAAAjE,gBAAA;MAAAwE,KACZ,EAAAiD,IAAA;MAAA9B,MACF,EAAA8B,IAAA;MACF,GAAAkK,UAAA;MAEA,GAAAU,eAAiB;MAAAI,MACf,SAAU;MACZ,IAAAN,gBAAA;QACDO,eAAA,EAAAhB,WAAA;QAEDiB,cAAM,EAAAjB;MACJ;MAEA,IAAAS,gBAAU;QACRS,iBAAU,EAAAlB,WAAA;QAAAmB,gBACD,EAAAnB;MAAA;MACK,IAAAS,gBACF;QAAAO,eACR,EAAAhB,WAAe;QAAAkB,iBACL,EAAAlB;MAAA;MACE,IAAAS,gBACZ,KAAgB;QAAAQ,cAClB,EAAAjB,WAAA;QACFmB,gBAAA,EAAAnB;MACF;IAEA;EAAiB;AAC4B,EAC7C","ignoreList":[]}
1
+ {"version":3,"file":"Popper.native.js","names":[],"sources":["jsx/Popper.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n\tfor (var name in all) __defProp(target, name, {\n\t\tget: all[name],\n\t\tenumerable: true\n\t});\n};\nvar __copyProps = (to, from, except, desc) => {\n\tif (from && typeof from === \"object\" || typeof from === \"function\") {\n\t\tfor (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {\n\t\t\tget: () => from[key],\n\t\t\tenumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable\n\t\t});\n\t}\n\treturn to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n\t// If the importer is in node compatibility mode or this is not an ESM\n\t// file that has been converted to a CommonJS file using a Babel-\n\t// compatible transform (i.e. \"__esModule\" has not been set), then set\n\t// \"default\" to the CommonJS \"module.exports\" for node compatibility.\n\tisNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", {\n\t\tvalue: mod,\n\t\tenumerable: true\n\t}) : target,\n\tmod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Popper_exports = {};\n__export(Popper_exports, {\n\tPopper: () => Popper,\n\tPopperAnchor: () => PopperAnchor,\n\tPopperArrow: () => PopperArrow,\n\tPopperArrowFrame: () => PopperArrowFrame,\n\tPopperContent: () => PopperContent,\n\tPopperContentFrame: () => PopperContentFrame,\n\tPopperContextFast: () => PopperContextFast,\n\tPopperContextSlow: () => PopperContextSlow,\n\tPopperPositionContext: () => PopperPositionContext,\n\tPopperProvider: () => PopperProvider,\n\tPopperProviderFast: () => PopperProviderFast,\n\tPopperProviderSlow: () => PopperProviderSlow,\n\tsetupPopper: () => setupPopper,\n\tusePopperContext: () => usePopperContext,\n\tusePopperContextSlow: () => usePopperContextSlow\n});\nmodule.exports = __toCommonJS(Popper_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_react_dom = require(\"react-dom\");\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_constants = require(\"@tamagui/constants\");\nvar import_core = require(\"@tamagui/core\");\nvar import_floating = require(\"@tamagui/floating\");\nvar import_floating2 = require(\"@tamagui/floating\");\nvar import_get_token = require(\"@tamagui/get-token\");\nvar import_start_transition = require(\"@tamagui/start-transition\");\nvar React = __toESM(require(\"react\"), 1);\nvar import_react_native = require(\"react-native\");\nfunction _instanceof(left, right) {\n\tif (right != null && typeof Symbol !== \"undefined\" && right[Symbol.hasInstance]) return !!right[Symbol.hasInstance](left);\n\telse return left instanceof right;\n}\nfunction _type_of(obj) {\n\t\"@swc/helpers - typeof\";\n\treturn obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar PopperContextFast = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"Popper__\"\n);\nvar PopperPositionContext = import_core.createStyledContext;\nvar { useStyledContext: usePopperContext, Provider: PopperProviderFast } = PopperContextFast;\nvar PopperContextSlow = (0, import_core.createStyledContext)(\n\t// since we always provide this we can avoid setting here\n\t{},\n\t\"PopperSlow__\"\n);\nvar { useStyledContext: usePopperContextSlow, Provider: PopperProviderSlow } = PopperContextSlow;\nvar PopperProvider = function(param) {\n\tvar { scope, children, ...context } = param;\n\tvar fns = React.useRef(context);\n\tfns.current = context;\n\tvar [slowContext] = React.useState(function() {\n\t\treturn {\n\t\t\trefs: context.refs,\n\t\t\ttriggerElements: context.triggerElements,\n\t\t\tupdate() {\n\t\t\t\tfor (var _len = arguments.length, a = new Array(_len), _key = 0; _key < _len; _key++) a[_key] = arguments[_key];\n\t\t\t\tfns.current.update(...a);\n\t\t\t},\n\t\t\tgetReferenceProps(p) {\n\t\t\t\tvar _fns_current_getReferenceProps, _fns_current;\n\t\t\t\treturn (_fns_current_getReferenceProps = (_fns_current = fns.current).getReferenceProps) === null || _fns_current_getReferenceProps === void 0 ? void 0 : _fns_current_getReferenceProps.call(_fns_current, p);\n\t\t\t},\n\t\t\tonHoverReference(e) {\n\t\t\t\tvar _fns_current_onHoverReference, _fns_current;\n\t\t\t\t(_fns_current_onHoverReference = (_fns_current = fns.current).onHoverReference) === null || _fns_current_onHoverReference === void 0 || _fns_current_onHoverReference.call(_fns_current, e);\n\t\t\t},\n\t\t\tonLeaveReference() {\n\t\t\t\tvar _fns_current_onLeaveReference, _fns_current;\n\t\t\t\t(_fns_current_onLeaveReference = (_fns_current = fns.current).onLeaveReference) === null || _fns_current_onLeaveReference === void 0 || _fns_current_onLeaveReference.call(_fns_current);\n\t\t\t}\n\t\t};\n\t});\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderFast, {\n\t\tscope,\n\t\t...context,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProviderSlow, {\n\t\t\tscope,\n\t\t\t...slowContext,\n\t\t\tchildren\n\t\t})\n\t});\n};\nvar checkFloating = {\n\tname: \"checkFloating\",\n\tfn(data) {\n\t\treturn { data: { hasFloating: !!data.rects.floating.width } };\n\t}\n};\nvar setupOptions = {};\nfunction setupPopper(options) {\n\tObject.assign(setupOptions, options);\n}\nfunction tamaguiAutoUpdate(reference, floating, update) {\n\tupdate();\n\tvar rafId = requestAnimationFrame(function() {\n\t\tupdate();\n\t\trafId = 0;\n\t});\n\tvar cleanups = [function() {\n\t\tif (rafId) cancelAnimationFrame(rafId);\n\t}];\n\tif (_instanceof(reference, HTMLElement)) cleanups.push((0, import_core.registerLayoutNode)(reference, update));\n\tif (typeof ResizeObserver !== \"undefined\") {\n\t\tvar lastWidth = -1;\n\t\tvar lastHeight = -1;\n\t\tvar ro = new ResizeObserver(function(entries) {\n\t\t\tvar entry = entries[entries.length - 1];\n\t\t\tif (!entry) return;\n\t\t\tvar { width, height } = entry.contentRect;\n\t\t\tif (lastWidth === -1) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (width !== lastWidth || height !== lastHeight) {\n\t\t\t\tlastWidth = width;\n\t\t\t\tlastHeight = height;\n\t\t\t\tupdate();\n\t\t\t}\n\t\t});\n\t\tro.observe(floating);\n\t\tcleanups.push(function() {\n\t\t\treturn ro.disconnect();\n\t\t});\n\t}\n\tvar ancestors = [..._instanceof(reference, Element) ? (0, import_floating2.getOverflowAncestors)(reference) : [], ...(0, import_floating2.getOverflowAncestors)(floating)];\n\tvar uniqueAncestors = [...new Set(ancestors)];\n\tvar _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = void 0;\n\ttry {\n\t\tfor (var _iterator = uniqueAncestors[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) _step.value.addEventListener(\"scroll\", update, { passive: true });\n\t} catch (err) {\n\t\t_didIteratorError = true;\n\t\t_iteratorError = err;\n\t} finally {\n\t\ttry {\n\t\t\tif (!_iteratorNormalCompletion && _iterator.return != null) _iterator.return();\n\t\t} finally {\n\t\t\tif (_didIteratorError) throw _iteratorError;\n\t\t}\n\t}\n\twindow.addEventListener(\"resize\", update);\n\tcleanups.push(function() {\n\t\tvar _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;\n\t\ttry {\n\t\t\tfor (var _iterator2 = uniqueAncestors[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) _step2.value.removeEventListener(\"scroll\", update);\n\t\t} catch (err) {\n\t\t\t_didIteratorError2 = true;\n\t\t\t_iteratorError2 = err;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();\n\t\t\t} finally {\n\t\t\t\tif (_didIteratorError2) throw _iteratorError2;\n\t\t\t}\n\t\t}\n\t\twindow.removeEventListener(\"resize\", update);\n\t});\n\treturn function() {\n\t\treturn cleanups.forEach(function(fn) {\n\t\t\treturn fn();\n\t\t});\n\t};\n}\nfunction Popper(props) {\n\tvar { children, size, strategy = \"absolute\", placement = \"bottom\", stayInFrame, allowFlip, offset, disableRTL, resize, passThrough, open, scope } = props;\n\tvar [arrowEl, setArrow] = React.useState(null);\n\tvar [arrowSize, setArrowSize] = React.useState(0);\n\tvar offsetOptions = offset !== null && offset !== void 0 ? offset : arrowSize;\n\tReact.useRef({});\n\tvar isOpen = passThrough ? false : open !== null && open !== void 0 ? open : true;\n\tvar middlewareRef = React.useRef([]);\n\tif (isOpen) middlewareRef.current = [\n\t\ttypeof offsetOptions !== \"undefined\" ? (0, import_floating2.offset)(offsetOptions) : null,\n\t\tallowFlip ? (0, import_floating2.flip)(typeof allowFlip === \"boolean\" ? {} : allowFlip) : null,\n\t\tstayInFrame ? (0, import_floating2.shift)({\n\t\t\tpadding: 10,\n\t\t\tmainAxis: true,\n\t\t\tcrossAxis: false,\n\t\t\t...(typeof stayInFrame === \"undefined\" ? \"undefined\" : _type_of(stayInFrame)) === \"object\" ? stayInFrame : null\n\t\t}) : null,\n\t\tarrowEl ? (0, import_floating2.arrow)({ element: arrowEl }) : null,\n\t\tcheckFloating,\n\t\tnull,\n\t\tnull,\n\t\tnull\n\t].filter(Boolean);\n\tvar floating = (0, import_floating2.useFloating)({\n\t\topen: isOpen,\n\t\tstrategy,\n\t\tplacement,\n\t\tsameScrollView: false,\n\t\twhileElementsMounted: !isOpen ? void 0 : tamaguiAutoUpdate,\n\t\tplatform: (disableRTL !== null && disableRTL !== void 0 ? disableRTL : setupOptions.disableRTL) ? {\n\t\t\t...import_floating2.platform,\n\t\t\tisRTL(element) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} : import_floating2.platform,\n\t\tmiddleware: middlewareRef.current\n\t});\n\tvar { middlewareData } = floating;\n\tvar dimensions = (0, import_react_native.useWindowDimensions)();\n\tvar [keyboardOpen, setKeyboardOpen] = React.useState(false);\n\tReact.useEffect(function() {\n\t\tvar showSubscription = import_react_native.Keyboard.addListener(\"keyboardDidShow\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(true);\n\t\t\t});\n\t\t});\n\t\tvar hideSubscription = import_react_native.Keyboard.addListener(\"keyboardDidHide\", function() {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\tsetKeyboardOpen(false);\n\t\t\t});\n\t\t});\n\t\treturn function() {\n\t\t\tshowSubscription.remove();\n\t\t\thideSubscription.remove();\n\t\t};\n\t}, []);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (passThrough) return;\n\t\tfloating.update();\n\t}, [\n\t\tpassThrough,\n\t\tdimensions,\n\t\tkeyboardOpen\n\t]);\n\tvar popperContext = React.useMemo(function() {\n\t\tvar _middlewareData_checkFloating;\n\t\treturn {\n\t\t\tsize,\n\t\t\tarrowRef: setArrow,\n\t\t\tarrowStyle: middlewareData.arrow,\n\t\t\tonArrowSize: setArrowSize,\n\t\t\thasFloating: (_middlewareData_checkFloating = middlewareData.checkFloating) === null || _middlewareData_checkFloating === void 0 ? void 0 : _middlewareData_checkFloating.hasFloating,\n\t\t\ttransformOrigin: middlewareData.transformOrigin,\n\t\t\topen: !!open,\n\t\t\t...floating\n\t\t};\n\t}, [\n\t\topen,\n\t\tsize,\n\t\tfloating,\n\t\tJSON.stringify(middlewareData.arrow || null),\n\t\tJSON.stringify(middlewareData.transformOrigin || null)\n\t]);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperProvider, {\n\t\tscope,\n\t\t...popperContext,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_floating.FloatingOverrideContext.Provider, {\n\t\t\tvalue: null,\n\t\t\tchildren\n\t\t})\n\t});\n}\nvar PopperAnchor = (0, import_core.createStyledHOC)(import_core.View, function PopperAnchor2(props, forwardedRef) {\n\tvar { virtualRef, scope, ...rest } = props;\n\tvar context = usePopperContextSlow(scope);\n\tvar { getReferenceProps, refs, update } = context;\n\tvar ref = React.useRef(null);\n\tvar triggerId = React.useId();\n\tReact.useEffect(function() {\n\t\tif (!scope || !context.triggerElements || !ref.current) return;\n\t\tif (!_instanceof(ref.current, Element)) return;\n\t\tvar el = ref.current;\n\t\tcontext.triggerElements.add(triggerId, el);\n\t\treturn function() {\n\t\t\tvar _context_triggerElements;\n\t\t\t(_context_triggerElements = context.triggerElements) === null || _context_triggerElements === void 0 || _context_triggerElements.delete(triggerId);\n\t\t};\n\t}, [\n\t\tscope,\n\t\ttriggerId,\n\t\tcontext.triggerElements\n\t]);\n\tReact.useEffect(function() {\n\t\tif (virtualRef) {\n\t\t\trefs.setReference(virtualRef.current);\n\t\t\tupdate();\n\t\t}\n\t}, [virtualRef]);\n\tvar refProps = (getReferenceProps === null || getReferenceProps === void 0 ? void 0 : getReferenceProps({\n\t\t...rest,\n\t\tref\n\t})) || null;\n\tvar safeSetReference = React.useCallback(\n\t\tfunction(node) {\n\t\t\t(0, import_start_transition.startTransition)(function() {\n\t\t\t\trefs.setReference(node);\n\t\t\t});\n\t\t},\n\t\t// it was refs.setRefernce but its stable and refs is undefined on server\n\t\t[refs]\n\t);\n\tvar shouldHandleInHover = import_constants.isWeb && scope;\n\tvar composedRefs = (0, import_compose_refs.useComposedRefs)(\n\t\tforwardedRef,\n\t\tref,\n\t\t// web handles this onMouseEnter below so it can support multiple targets + hovering\n\t\tshouldHandleInHover ? void 0 : safeSetReference\n\t);\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t...rest,\n\t\t...refProps,\n\t\tref: composedRefs,\n\t\t...shouldHandleInHover && {\n\t\t\tonMouseEnter: function(e) {\n\t\t\t\tvar _e_currentTarget;\n\t\t\t\tvar el = (_e_currentTarget = e.currentTarget) !== null && _e_currentTarget !== void 0 ? _e_currentTarget : ref.current;\n\t\t\t\tif (_instanceof(el, HTMLElement)) {\n\t\t\t\t\tvar _refProps_onPointerEnter, _context_onHoverReference;\n\t\t\t\t\t(0, import_react_dom.flushSync)(function() {\n\t\t\t\t\t\treturn refs.setReference(el);\n\t\t\t\t\t});\n\t\t\t\t\tupdate();\n\t\t\t\t\tif (!refProps) return;\n\t\t\t\t\t(_refProps_onPointerEnter = refProps.onPointerEnter) === null || _refProps_onPointerEnter === void 0 || _refProps_onPointerEnter.call(refProps, e);\n\t\t\t\t\t(_context_onHoverReference = context.onHoverReference) === null || _context_onHoverReference === void 0 || _context_onHoverReference.call(context, e.nativeEvent);\n\t\t\t\t}\n\t\t\t},\n\t\t\tonMouseLeave: function(e) {\n\t\t\t\tvar _context_onLeaveReference, _refProps_onMouseLeave;\n\t\t\t\t(_context_onLeaveReference = context.onLeaveReference) === null || _context_onLeaveReference === void 0 || _context_onLeaveReference.call(context);\n\t\t\t\trefProps === null || refProps === void 0 || (_refProps_onMouseLeave = refProps.onMouseLeave) == null || _refProps_onMouseLeave.call(refProps, e);\n\t\t\t}\n\t\t}\n\t});\n});\nvar PopperContentFrame = (0, import_core.styled)(import_core.View, { displayName: \"PopperContent\" });\nvar PopperContent = (0, import_core.createRefComponent)(function PopperContent2(props, forwardedRef) {\n\tvar isAnimatePosControlled = \"animatePosition\" in props;\n\tvar { scope, animatePosition, children, passThrough, ...rest } = props;\n\tvar animatePos = animatePosition;\n\tvar context = usePopperContext(scope);\n\tvar { strategy, placement, refs, x, y, getFloatingProps, isPositioned, transformOrigin, update } = context;\n\tvar updateRef = React.useRef(update);\n\tupdateRef.current = update;\n\tvar lastNodeRef = React.useRef(null);\n\tvar safeSetFloating = React.useCallback(\n\t\tfunction(node) {\n\t\t\tvar isNewNode = node !== lastNodeRef.current;\n\t\t\tif (node) {\n\t\t\t\tlastNodeRef.current = node;\n\t\t\t\trefs.setFloating(node);\n\t\t\t\tif (!isNewNode) {\n\t\t\t\t\tvar _updateRef_current;\n\t\t\t\t\t(_updateRef_current = updateRef.current) === null || _updateRef_current === void 0 || _updateRef_current.call(updateRef);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\t// null calls are blocked: cycling nulls are transient, genuine unmount\n\t\t// is handled by the useEffect cleanup below\n\t\t[refs.setFloating]\n\t);\n\tReact.useEffect(function() {\n\t\treturn function() {\n\t\t\tvar ourNode = lastNodeRef.current;\n\t\t\tif (ourNode && refs.floating.current === ourNode) refs.setFloating(null);\n\t\t\tlastNodeRef.current = null;\n\t\t};\n\t}, []);\n\tvar contentRefs = (0, import_compose_refs.useComposedRefs)(safeSetFloating, forwardedRef);\n\tvar [needsMeasure, setNeedsMeasure] = React.useState(animatePos);\n\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\tif (needsMeasure && x && y) setNeedsMeasure(false);\n\t}, [\n\t\tneedsMeasure,\n\t\tanimatePos,\n\t\tx,\n\t\ty\n\t]);\n\tvar hasBeenPositioned = React.useRef(false);\n\tvar lastGoodPosition = React.useRef({\n\t\tx: 0,\n\t\ty: 0\n\t});\n\tif (x !== 0 || y !== 0) {\n\t\tlastGoodPosition.current = {\n\t\t\tx,\n\t\t\ty\n\t\t};\n\t\tif (isPositioned) hasBeenPositioned.current = true;\n\t}\n\tvar brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;\n\tvar effectiveX = brieflyZero ? lastGoodPosition.current.x : x;\n\tvar effectiveY = brieflyZero ? lastGoodPosition.current.y : y;\n\tvar hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;\n\tvar disableAnimationProp = animatePos === \"even-when-repositioning\" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;\n\tvar [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);\n\tReact.useEffect(function() {\n\t\tsetDisableAnimation(disableAnimationProp);\n\t}, [disableAnimationProp]);\n\tvar frameProps = {\n\t\tref: contentRefs,\n\t\t...hide ? {} : (\n\t\t// omit x/y when hiding - prevents motion driver from animating from origin\n\t\t{\n\t\t\tx: effectiveX || 0,\n\t\t\ty: effectiveY || 0\n\t\t}),\n\t\ttop: 0,\n\t\tleft: 0,\n\t\tposition: strategy,\n\t\topacity: hide ? 0 : 1,\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePos ? rest.transition : void 0,\n\t\t\tanimateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],\n\t\t\tanimatePresence: false\n\t\t}\n\t};\n\tvar { style, ...floatingProps } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;\n\tvar transformOriginStyle = import_constants.isWeb && transformOrigin ? { transformOrigin: `${transformOrigin.x} ${transformOrigin.y}` } : void 0;\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.LayoutMeasurementController, {\n\t\tdisable: !context.open,\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_core.View, {\n\t\t\tpassThrough,\n\t\t\tref: contentRefs,\n\t\t\tdirection: rest.direction,\n\t\t\t...passThrough ? null : floatingProps,\n\t\t\t...!passThrough && animatePos && { \"data-popper-animate-position\": \"true\" },\n\t\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperContentFrame, {\n\t\t\t\tpassThrough,\n\t\t\t\t...!passThrough && {\n\t\t\t\t\t\"data-placement\": placement,\n\t\t\t\t\t\"data-strategy\": strategy,\n\t\t\t\t\t...style,\n\t\t\t\t\t...transformOriginStyle,\n\t\t\t\t\t...rest\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t}, \"popper-content-frame\")\n\t\t})\n\t});\n});\nvar PopperArrowFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrow\",\n\tposition: \"relative\"\n});\nvar PopperArrowOuterFrame = (0, import_core.styled)(import_core.View, {\n\tdisplayName: \"PopperArrowOuter\",\n\tposition: \"absolute\",\n\tzIndex: 1e6,\n\tpointerEvents: \"none\",\n\toverflow: \"hidden\",\n\talignItems: \"center\",\n\tjustifyContent: \"center\"\n});\nvar opposites = {\n\ttop: \"bottom\",\n\tright: \"left\",\n\tbottom: \"top\",\n\tleft: \"right\"\n};\nvar PopperArrow = (0, import_core.createRefComponent)(function PopperArrow2(propsIn, forwardedRef) {\n\tvar _context_arrowStyle, _context_arrowStyle1;\n\tvar isAnimatePosControlled = \"animatePosition\" in propsIn;\n\tvar { scope, animatePosition, transition, ...rest } = propsIn;\n\tvar { offset, size: sizeProp, borderWidth = 0, ...arrowProps } = rest;\n\tvar context = usePopperContext(scope);\n\tvar sizeVal = typeof sizeProp === \"number\" ? sizeProp : (0, import_core.getVariableValue)((0, import_get_token.getSize)(sizeProp !== null && sizeProp !== void 0 ? sizeProp : context.size)) * .52 - 11.5;\n\tvar size = Math.max(0, +sizeVal);\n\tvar { placement } = context;\n\tvar refs = (0, import_compose_refs.useComposedRefs)(context.arrowRef, forwardedRef);\n\tvar x = ((_context_arrowStyle = context.arrowStyle) === null || _context_arrowStyle === void 0 ? void 0 : _context_arrowStyle.x) || 0;\n\tvar y = ((_context_arrowStyle1 = context.arrowStyle) === null || _context_arrowStyle1 === void 0 ? void 0 : _context_arrowStyle1.y) || 0;\n\tvar arrowPositioned = context.arrowStyle != null;\n\tvar primaryPlacement = placement ? placement.split(\"-\")[0] : \"top\";\n\tvar arrowStyle = {\n\t\tx,\n\t\ty,\n\t\twidth: size,\n\t\theight: size\n\t};\n\tvar innerArrowStyle = {};\n\tvar isVertical = primaryPlacement === \"bottom\" || primaryPlacement === \"top\";\n\tif (primaryPlacement) {\n\t\tarrowStyle[isVertical ? \"width\" : \"height\"] = size * 2;\n\t\tvar oppSide = opposites[primaryPlacement];\n\t\tif (oppSide) {\n\t\t\tarrowStyle[oppSide] = -size;\n\t\t\tinnerArrowStyle[oppSide] = size / 2;\n\t\t}\n\t\tif (oppSide === \"top\" || oppSide === \"bottom\") arrowStyle.left = 0;\n\t\tif (oppSide === \"left\" || oppSide === \"right\") arrowStyle.top = 0;\n\t\t(0, import_constants.useIsomorphicLayoutEffect)(function() {\n\t\t\tvar _context_onArrowSize;\n\t\t\t(_context_onArrowSize = context.onArrowSize) === null || _context_onArrowSize === void 0 || _context_onArrowSize.call(context, size);\n\t\t}, [size, context.onArrowSize]);\n\t}\n\treturn /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowOuterFrame, {\n\t\tref: refs,\n\t\t...arrowStyle,\n\t\t...!arrowPositioned && { opacity: 0 },\n\t\t...isAnimatePosControlled && {\n\t\t\ttransition: animatePosition ? transition : void 0,\n\t\t\tanimateOnly: animatePosition ? [\"transform\"] : [],\n\t\t\tanimatePresence: false\n\t\t},\n\t\tchildren: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopperArrowFrame, {\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\t...arrowProps,\n\t\t\t...innerArrowStyle,\n\t\t\trotate: \"45deg\",\n\t\t\t...primaryPlacement === \"bottom\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderTopWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"top\" && {\n\t\t\t\tborderBottomWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"right\" && {\n\t\t\t\tborderLeftWidth: borderWidth,\n\t\t\t\tborderBottomWidth: borderWidth\n\t\t\t},\n\t\t\t...primaryPlacement === \"left\" && {\n\t\t\t\tborderTopWidth: borderWidth,\n\t\t\t\tborderRightWidth: borderWidth\n\t\t\t}\n\t\t})\n\t});\n});\n//# sourceMappingURL=Popper.js.map\n"],"mappings":";;;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC/B,KAAK,IAAI,QAAQ,KAAK,UAAU,QAAQ,MAAM;EAC7C,KAAK,IAAI;EACT,YAAY;CACb,CAAC;AACF;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAA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,qBAAqB,KAAK,SAAS,IAAI;EACpI,GAAG,CAAC,MAAM,QAAQ,WAAW,CAAC;CAC/B;CACA,OAAuB,iBAAC,GAAG,mBAAmB,KAAK,uBAAuB;EACzE,KAAK;EACL,GAAG;EACH,GAAG,CAAC,mBAAmB,EAAE,SAAS,EAAE;EACpC,GAAG,0BAA0B;GAC5B,YAAY,kBAAkB,aAAa,KAAK;GAChD,aAAa,kBAAkB,CAAC,WAAW,IAAI,CAAC;GAChD,iBAAiB;EAClB;EACA,UAA0B,iBAAC,GAAG,mBAAmB,KAAK,kBAAkB;GACvE,OAAO;GACP,QAAQ;GACR,GAAG;GACH,GAAG;GACH,QAAQ;GACR,GAAG,qBAAqB,YAAY;IACnC,iBAAiB;IACjB,gBAAgB;GACjB;GACA,GAAG,qBAAqB,SAAS;IAChC,mBAAmB;IACnB,kBAAkB;GACnB;GACA,GAAG,qBAAqB,WAAW;IAClC,iBAAiB;IACjB,mBAAmB;GACpB;GACA,GAAG,qBAAqB,UAAU;IACjC,gBAAgB;IAChB,kBAAkB;GACnB;EACD,CAAC;CACF,CAAC;AACF,CAAC"}
package/dist/jsx/index.js CHANGED
@@ -1,2 +1 @@
1
- export * from "./Popper.mjs";
2
- //# sourceMappingURL=index.js.map
1
+ export * from "./Popper.mjs"
@@ -1,2 +1 @@
1
- export * from "./Popper.mjs";
2
- //# sourceMappingURL=index.mjs.map
1
+ export * from "./Popper.mjs"
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var index_exports = {};
20
+ module.exports = __toCommonJS(index_exports);
21
+ __reExport(index_exports, require("./Popper.native.js"), module.exports);
@@ -1,23 +1,23 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
15
16
  };
16
17
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
19
  var index_exports = {};
21
20
  module.exports = __toCommonJS(index_exports);
22
21
  __reExport(index_exports, require("./Popper.native.js"), module.exports);
22
+
23
23
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["jsx/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./Popper\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,oBAAU,GAAG,OAAO,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/popper",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-beta.643.1",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -34,22 +34,23 @@
34
34
  "clean:build": "tamagui-build clean:build"
35
35
  },
36
36
  "dependencies": {
37
- "@tamagui/compose-refs": "2.7.7",
38
- "@tamagui/constants": "2.7.7",
39
- "@tamagui/core": "2.7.7",
40
- "@tamagui/floating": "2.7.7",
41
- "@tamagui/get-token": "2.7.7",
42
- "@tamagui/stacks": "2.7.7",
43
- "@tamagui/start-transition": "2.7.7",
44
- "@tamagui/use-controllable-state": "2.7.7"
37
+ "@tamagui/compose-refs": "3.0.0-beta.643.1",
38
+ "@tamagui/constants": "3.0.0-beta.643.1",
39
+ "@tamagui/core": "3.0.0-beta.643.1",
40
+ "@tamagui/floating": "3.0.0-beta.643.1",
41
+ "@tamagui/get-token": "3.0.0-beta.643.1",
42
+ "@tamagui/start-transition": "3.0.0-beta.643.1",
43
+ "@tamagui/use-controllable-state": "3.0.0-beta.643.1"
45
44
  },
46
45
  "devDependencies": {
47
- "@tamagui/build": "2.7.7",
46
+ "@tamagui/build": "3.0.0-beta.643.1",
48
47
  "react": ">=19",
49
- "react-native": "0.83.2"
48
+ "react-native": "0.86.2"
50
49
  },
51
50
  "peerDependencies": {
52
- "react": ">=19"
51
+ "react": ">=19",
52
+ "react-dom": "*",
53
+ "react-native-web": "*"
53
54
  },
54
55
  "module:jsx": "dist/jsx",
55
56
  "repository": {
package/src/Popper.tsx CHANGED
@@ -4,8 +4,10 @@ import { useComposedRefs } from '@tamagui/compose-refs'
4
4
  import { isWeb, useIsomorphicLayoutEffect } from '@tamagui/constants'
5
5
  import type { SizeTokens, TamaguiElement, ViewProps } from '@tamagui/core'
6
6
  import {
7
+ createStyledHOC,
7
8
  LayoutMeasurementController,
8
9
  View as TamaguiView,
10
+ createRefComponent,
9
11
  createStyledContext,
10
12
  getVariableValue,
11
13
  registerLayoutNode,
@@ -34,9 +36,7 @@ import {
34
36
  size as sizeMiddleware,
35
37
  useFloating,
36
38
  } from '@tamagui/floating'
37
- import { getSpace } from '@tamagui/get-token'
38
- import type { SizableStackProps, YStackProps } from '@tamagui/stacks'
39
- import { YStack } from '@tamagui/stacks'
39
+ import { getSize } from '@tamagui/get-token'
40
40
  import { startTransition } from '@tamagui/start-transition'
41
41
  import * as React from 'react'
42
42
  import { Keyboard, useWindowDimensions } from 'react-native'
@@ -65,7 +65,7 @@ export type PopperContextValue = UseFloatingReturn & PopperContextShared
65
65
 
66
66
  export const PopperContextFast = createStyledContext<PopperContextValue>(
67
67
  // since we always provide this we can avoid setting here
68
- {} as PopperContextValue,
68
+ {},
69
69
  'Popper__'
70
70
  )
71
71
 
@@ -85,7 +85,7 @@ export type PopperContextSlowValue = Pick<
85
85
 
86
86
  export const PopperContextSlow = createStyledContext<PopperContextSlowValue>(
87
87
  // since we always provide this we can avoid setting here
88
- {} as PopperContextSlowValue,
88
+ {},
89
89
  'PopperSlow__'
90
90
  )
91
91
 
@@ -559,10 +559,11 @@ export type PopperAnchorExtraProps = {
559
559
  virtualRef?: React.RefObject<any>
560
560
  scope?: string
561
561
  }
562
- export type PopperAnchorProps = YStackProps
562
+ export type PopperAnchorProps = ViewProps
563
563
 
564
- export const PopperAnchor = YStack.styleable<PopperAnchorExtraProps>(
565
- function PopperAnchor(props, forwardedRef) {
564
+ export const PopperAnchor = createStyledHOC(
565
+ TamaguiView,
566
+ function PopperAnchor(props: PopperAnchorExtraProps, forwardedRef) {
566
567
  const { virtualRef, scope, ...rest } = props
567
568
  const context = usePopperContextSlow(scope)
568
569
  const { getReferenceProps, refs, update } = context
@@ -658,56 +659,30 @@ export const PopperAnchor = YStack.styleable<PopperAnchorExtraProps>(
658
659
 
659
660
  type PopperContentElement = TamaguiElement
660
661
 
661
- export type PopperContentProps = SizableStackProps & {
662
+ export type PopperContentProps = ViewProps & {
662
663
  scope?: string
663
664
  /**
664
665
  * Enable smooth animation when the content position changes (e.g., when flipping sides)
665
666
  */
666
667
  animatePosition?: boolean | 'even-when-repositioning'
667
- /** @deprecated Use `animatePosition` instead */
668
- enableAnimationForPositionChange?: boolean | 'even-when-repositioning'
669
668
  passThrough?: boolean
670
669
  }
671
670
 
672
- export const PopperContentFrame = styled(YStack, {
673
- name: 'PopperContent',
674
-
675
- variants: {
676
- unstyled: {
677
- true: {},
678
- },
679
-
680
- size: {
681
- '...size': (val, { tokens }) => {
682
- return {
683
- padding: tokens.space[val],
684
- borderRadius: tokens.radius[val],
685
- }
686
- },
687
- },
688
- } as const,
671
+ export const PopperContentFrame = styled(TamaguiView, {
672
+ displayName: 'PopperContent',
689
673
  })
690
674
 
691
- export const PopperContent = React.forwardRef<PopperContentElement, PopperContentProps>(
675
+ export const PopperContent = createRefComponent<PopperContentElement, PopperContentProps>(
692
676
  function PopperContent(props, forwardedRef) {
693
677
  // detect controlled animatePosition before destructuring. when the user passes
694
678
  // animatePosition (even with a currently-falsy value like undefined or false),
695
679
  // toggling it later must not flip 'transition' presence on the inner View - that
696
680
  // would change useComponentState's hasAnimationProp mid-life, conditionally calling
697
681
  // useAnimations/usePresence and tripping React's "Should have a queue" invariant.
698
- const isAnimatePosControlled =
699
- 'animatePosition' in props || 'enableAnimationForPositionChange' in props
682
+ const isAnimatePosControlled = 'animatePosition' in props
700
683
 
701
- const {
702
- scope,
703
- animatePosition,
704
- enableAnimationForPositionChange,
705
- children,
706
- passThrough,
707
- unstyled,
708
- ...rest
709
- } = props
710
- const animatePos = animatePosition ?? enableAnimationForPositionChange
684
+ const { scope, animatePosition, children, passThrough, ...rest } = props
685
+ const animatePos = animatePosition
711
686
  const context = usePopperContext(scope)
712
687
 
713
688
  const {
@@ -717,7 +692,6 @@ export const PopperContent = React.forwardRef<PopperContentElement, PopperConten
717
692
  x,
718
693
  y,
719
694
  getFloatingProps,
720
- size,
721
695
  isPositioned,
722
696
  transformOrigin,
723
697
  update,
@@ -878,11 +852,9 @@ export const PopperContent = React.forwardRef<PopperContentElement, PopperConten
878
852
  <PopperContentFrame
879
853
  key="popper-content-frame"
880
854
  passThrough={passThrough}
881
- unstyled={unstyled}
882
855
  {...(!passThrough && {
883
856
  'data-placement': placement,
884
857
  'data-strategy': strategy,
885
- size,
886
858
  ...style,
887
859
  ...transformOriginStyle,
888
860
  ...rest,
@@ -910,45 +882,21 @@ export type PopperArrowExtraProps = {
910
882
  animatePosition?: boolean
911
883
  }
912
884
 
913
- export type PopperArrowProps = YStackProps & PopperArrowExtraProps
914
-
915
- export const PopperArrowFrame = styled(YStack, {
916
- name: 'PopperArrow',
885
+ export type PopperArrowProps = ViewProps & PopperArrowExtraProps
917
886
 
918
- variants: {
919
- unstyled: {
920
- false: {
921
- borderColor: '$borderColor',
922
- backgroundColor: '$background',
923
- position: 'relative',
924
- },
925
- },
926
- } as const,
927
-
928
- defaultVariants: {
929
- unstyled: process.env.TAMAGUI_HEADLESS === '1',
930
- },
887
+ export const PopperArrowFrame = styled(TamaguiView, {
888
+ displayName: 'PopperArrow',
889
+ position: 'relative',
931
890
  })
932
891
 
933
- const PopperArrowOuterFrame = styled(YStack, {
934
- name: 'PopperArrowOuter',
935
-
936
- variants: {
937
- unstyled: {
938
- false: {
939
- position: 'absolute',
940
- zIndex: 1_000_000,
941
- pointerEvents: 'none',
942
- overflow: 'hidden',
943
- alignItems: 'center',
944
- justifyContent: 'center',
945
- },
946
- },
947
- } as const,
948
-
949
- defaultVariants: {
950
- unstyled: process.env.TAMAGUI_HEADLESS === '1',
951
- },
892
+ const PopperArrowOuterFrame = styled(TamaguiView, {
893
+ displayName: 'PopperArrowOuter',
894
+ position: 'absolute',
895
+ zIndex: 1_000_000,
896
+ pointerEvents: 'none',
897
+ overflow: 'hidden',
898
+ alignItems: 'center',
899
+ justifyContent: 'center',
952
900
  })
953
901
 
954
902
  const opposites = {
@@ -960,7 +908,7 @@ const opposites = {
960
908
 
961
909
  type Sides = keyof typeof opposites
962
910
 
963
- export const PopperArrow = React.forwardRef<TamaguiElement, PopperArrowProps>(
911
+ export const PopperArrow = createRefComponent<TamaguiElement, PopperArrowProps>(
964
912
  function PopperArrow(propsIn, forwardedRef) {
965
913
  // see PopperContent for why we detect controlled animatePosition before destructuring
966
914
  const isAnimatePosControlled = 'animatePosition' in propsIn
@@ -973,12 +921,7 @@ export const PopperArrow = React.forwardRef<TamaguiElement, PopperArrowProps>(
973
921
  const sizeVal =
974
922
  typeof sizeProp === 'number'
975
923
  ? sizeProp
976
- : getVariableValue(
977
- getSpace(sizeProp ?? context.size, {
978
- shift: -2,
979
- bounds: [2],
980
- })
981
- )
924
+ : (getVariableValue(getSize(sizeProp ?? context.size)) as number) * 0.52 - 11.5
982
925
 
983
926
  const size = Math.max(0, +sizeVal)
984
927