@hanzogui/popper 8.3.1 → 8.3.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.
Files changed (40) hide show
  1. package/dist/cjs/Popper.js +644 -0
  2. package/dist/cjs/Popper.js.map +1 -0
  3. package/dist/cjs/index.js +5 -0
  4. package/dist/cjs/index.js.map +1 -0
  5. package/dist/cjs/package.json +1 -0
  6. package/dist/esm/Popper.js +637 -0
  7. package/dist/esm/Popper.js.map +1 -0
  8. package/dist/esm/index.js +2 -2
  9. package/dist/esm/index.js.map +1 -1
  10. package/package.json +29 -24
  11. package/src/Popper.tsx +16 -18
  12. package/src/index.ts +1 -1
  13. package/types/Popper.d.ts +27 -27
  14. package/types/Popper.d.ts.map +1 -1
  15. package/types/index.d.ts +1 -1
  16. package/types/index.d.ts.map +1 -1
  17. package/dist/cjs/Popper.cjs +0 -627
  18. package/dist/cjs/Popper.native.js +0 -631
  19. package/dist/cjs/Popper.native.js.map +0 -1
  20. package/dist/cjs/index.cjs +0 -20
  21. package/dist/cjs/index.native.js +0 -23
  22. package/dist/cjs/index.native.js.map +0 -1
  23. package/dist/esm/Popper.mjs +0 -566
  24. package/dist/esm/Popper.mjs.map +0 -1
  25. package/dist/esm/Popper.native.js +0 -563
  26. package/dist/esm/Popper.native.js.map +0 -1
  27. package/dist/esm/index.mjs +0 -2
  28. package/dist/esm/index.mjs.map +0 -1
  29. package/dist/esm/index.native.js +0 -2
  30. package/dist/esm/index.native.js.map +0 -1
  31. package/dist/jsx/Popper.mjs +0 -566
  32. package/dist/jsx/Popper.mjs.map +0 -1
  33. package/dist/jsx/Popper.native.js +0 -631
  34. package/dist/jsx/Popper.native.js.map +0 -1
  35. package/dist/jsx/index.js +0 -2
  36. package/dist/jsx/index.js.map +0 -1
  37. package/dist/jsx/index.mjs +0 -2
  38. package/dist/jsx/index.mjs.map +0 -1
  39. package/dist/jsx/index.native.js +0 -23
  40. package/dist/jsx/index.native.js.map +0 -1
@@ -1 +0,0 @@
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","hanzoguiAutoUpdate","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","GUI_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 \"@hanzogui/compose-refs\";\nimport { isWeb, useIsomorphicLayoutEffect } from \"@hanzogui/constants\";\nimport { LayoutMeasurementController, View, createStyledContext, getVariableValue, registerLayoutNode, styled } from \"@hanzogui/core\";\nimport { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, useFloating } from \"@hanzogui/floating\";\nimport { getSpace } from \"@hanzogui/get-token\";\nimport { YStack } from \"@hanzogui/stacks\";\nimport { startTransition } from \"@hanzogui/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 hanzoguiAutoUpdate(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 : hanzoguiAutoUpdate,\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.GUI_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.GUI_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,wBAAwB;AAC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B,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,2 +0,0 @@
1
- export * from "./Popper.mjs";
2
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export * from "./Popper.native.js";
2
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1,566 +0,0 @@
1
- import { flushSync } from "react-dom";
2
- import { useComposedRefs } from "@hanzogui/compose-refs";
3
- import { isWeb, useIsomorphicLayoutEffect } from "@hanzogui/constants";
4
- import { LayoutMeasurementController, View, createStyledContext, getVariableValue, registerLayoutNode, styled } from "@hanzogui/core";
5
- import { FloatingOverrideContext, arrow, flip, getOverflowAncestors, offset, platform, shift, size, useFloating } from "@hanzogui/floating";
6
- import { getSpace } from "@hanzogui/get-token";
7
- import { YStack } from "@hanzogui/stacks";
8
- import { startTransition } from "@hanzogui/start-transition";
9
- import * as React from "react";
10
- import { jsx } from "react/jsx-runtime";
11
- const PopperContextFast = createStyledContext({}, "Popper__");
12
- const PopperPositionContext = createStyledContext;
13
- const {
14
- useStyledContext: usePopperContext,
15
- Provider: PopperProviderFast
16
- } = PopperContextFast;
17
- const PopperContextSlow = createStyledContext({}, "PopperSlow__");
18
- const {
19
- useStyledContext: usePopperContextSlow,
20
- Provider: PopperProviderSlow
21
- } = PopperContextSlow;
22
- const PopperProvider = ({
23
- scope,
24
- children,
25
- ...context
26
- }) => {
27
- const fns = React.useRef(context);
28
- fns.current = context;
29
- const [slowContext] = React.useState(() => ({
30
- refs: context.refs,
31
- triggerElements: context.triggerElements,
32
- update(...a) {
33
- fns.current.update(...a);
34
- },
35
- getReferenceProps(p) {
36
- return fns.current.getReferenceProps?.(p);
37
- },
38
- onHoverReference(e) {
39
- fns.current.onHoverReference?.(e);
40
- },
41
- onLeaveReference() {
42
- fns.current.onLeaveReference?.();
43
- }
44
- }));
45
- return /* @__PURE__ */jsx(PopperProviderFast, {
46
- scope,
47
- ...context,
48
- children: /* @__PURE__ */jsx(PopperProviderSlow, {
49
- scope,
50
- ...slowContext,
51
- children
52
- })
53
- });
54
- };
55
- const checkFloating = void 0;
56
- const setupOptions = {};
57
- function setupPopper(options) {
58
- Object.assign(setupOptions, options);
59
- }
60
- function getSideAndAlignFromPlacement(placement) {
61
- const [side, align = "center"] = placement.split("-");
62
- return [side, align];
63
- }
64
- const transformOriginMiddleware = options => ({
65
- name: "transformOrigin",
66
- options,
67
- fn(data) {
68
- const {
69
- placement,
70
- rects,
71
- middlewareData
72
- } = data;
73
- const isArrowHidden = middlewareData.arrow?.centerOffset !== 0;
74
- const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
75
- const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
76
- const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
77
- const noArrowAlign = {
78
- start: "0%",
79
- center: "50%",
80
- end: "100%"
81
- }[placedAlign];
82
- const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
83
- const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
84
- let x = "";
85
- let y = "";
86
- if (placedSide === "bottom") {
87
- x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
88
- y = `${-arrowHeight}px`;
89
- } else if (placedSide === "top") {
90
- x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
91
- y = `${rects.floating.height + arrowHeight}px`;
92
- } else if (placedSide === "right") {
93
- x = `${-arrowHeight}px`;
94
- y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
95
- } else if (placedSide === "left") {
96
- x = `${rects.floating.width + arrowHeight}px`;
97
- y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
98
- }
99
- return {
100
- data: {
101
- x,
102
- y
103
- }
104
- };
105
- }
106
- });
107
- function hanzoguiAutoUpdate(reference, floating, update) {
108
- update();
109
- let rafId = requestAnimationFrame(() => {
110
- update();
111
- rafId = 0;
112
- });
113
- const cleanups = [() => {
114
- if (rafId) cancelAnimationFrame(rafId);
115
- }];
116
- if (reference instanceof HTMLElement) cleanups.push(registerLayoutNode(reference, update));
117
- const ancestors = [...(reference instanceof Element ? getOverflowAncestors(reference) : []), ...getOverflowAncestors(floating)];
118
- const uniqueAncestors = [...new Set(ancestors)];
119
- for (const ancestor of uniqueAncestors) ancestor.addEventListener("scroll", update, {
120
- passive: true
121
- });
122
- window.addEventListener("resize", update);
123
- cleanups.push(() => {
124
- for (const ancestor of uniqueAncestors) ancestor.removeEventListener("scroll", update);
125
- window.removeEventListener("resize", update);
126
- });
127
- return () => cleanups.forEach(fn => fn());
128
- }
129
- function Popper(props) {
130
- const {
131
- children,
132
- size: size$1,
133
- strategy = "absolute",
134
- placement = "bottom",
135
- stayInFrame,
136
- allowFlip,
137
- offset: offset$1,
138
- disableRTL,
139
- resize,
140
- passThrough,
141
- open,
142
- scope
143
- } = props;
144
- const [arrowEl, setArrow] = React.useState(null);
145
- const [arrowSize, setArrowSize] = React.useState(0);
146
- const offsetOptions = offset$1 ?? arrowSize;
147
- const floatingStyle = React.useRef({});
148
- const isOpen = passThrough ? false : open ?? true;
149
- const middlewareRef = React.useRef([]);
150
- if (isOpen) middlewareRef.current = [typeof offsetOptions !== "undefined" ? offset(offsetOptions) : null, allowFlip ? flip(typeof allowFlip === "boolean" ? {} : allowFlip) : null, stayInFrame ? shift({
151
- padding: 10,
152
- mainAxis: true,
153
- crossAxis: false,
154
- ...(typeof stayInFrame === "object" ? stayInFrame : null)
155
- }) : null, arrowEl ? arrow({
156
- element: arrowEl
157
- }) : null, checkFloating, resize ? size({
158
- padding: typeof stayInFrame === "object" ? stayInFrame.padding : 10,
159
- apply({
160
- availableHeight,
161
- availableWidth
162
- }) {
163
- if (passThrough) return;
164
- Object.assign(floatingStyle.current, {
165
- maxHeight: `${availableHeight}px`,
166
- maxWidth: `${availableWidth}px`
167
- });
168
- const floatingChild = floating.refs.floating.current?.firstChild;
169
- if (floatingChild && floatingChild instanceof HTMLElement) Object.assign(floatingChild.style, floatingStyle.current);
170
- },
171
- ...(typeof resize === "object" && resize)
172
- }) : null, size({
173
- apply({
174
- elements,
175
- rects,
176
- availableWidth,
177
- availableHeight
178
- }) {
179
- const {
180
- width: anchorWidth,
181
- height: anchorHeight
182
- } = rects.reference;
183
- const contentStyle = elements.floating.style;
184
- contentStyle.setProperty("--hanzogui-popper-available-width", `${availableWidth}px`);
185
- contentStyle.setProperty("--hanzogui-popper-available-height", `${availableHeight}px`);
186
- contentStyle.setProperty("--hanzogui-popper-anchor-width", `${anchorWidth}px`);
187
- contentStyle.setProperty("--hanzogui-popper-anchor-height", `${anchorHeight}px`);
188
- }
189
- }), transformOriginMiddleware({
190
- arrowHeight: arrowSize,
191
- arrowWidth: arrowSize
192
- })].filter(Boolean);
193
- let floating = useFloating({
194
- open: isOpen,
195
- strategy,
196
- placement,
197
- sameScrollView: false,
198
- whileElementsMounted: !isOpen ? void 0 : hanzoguiAutoUpdate,
199
- platform: disableRTL ?? setupOptions.disableRTL ? {
200
- ...platform,
201
- isRTL(element) {
202
- return false;
203
- }
204
- } : platform,
205
- middleware: middlewareRef.current
206
- });
207
- floating = React.useMemo(() => {
208
- const og = floating.getFloatingProps;
209
- if (resize && og) floating.getFloatingProps = props2 => {
210
- return og({
211
- ...props2,
212
- style: {
213
- ...props2.style,
214
- ...floatingStyle.current
215
- }
216
- });
217
- };
218
- return floating;
219
- }, [floating, resize ? JSON.stringify(resize) : null]);
220
- const {
221
- middlewareData
222
- } = floating;
223
- return /* @__PURE__ */jsx(PopperProvider, {
224
- scope,
225
- ...React.useMemo(() => {
226
- return {
227
- size: size$1,
228
- arrowRef: setArrow,
229
- arrowStyle: middlewareData.arrow,
230
- onArrowSize: setArrowSize,
231
- hasFloating: middlewareData.checkFloating?.hasFloating,
232
- transformOrigin: middlewareData.transformOrigin,
233
- open: !!open,
234
- ...floating
235
- };
236
- }, [open, size$1, floating, JSON.stringify(middlewareData.arrow || null), JSON.stringify(middlewareData.transformOrigin || null)]),
237
- children: /* @__PURE__ */jsx(FloatingOverrideContext.Provider, {
238
- value: null,
239
- children
240
- })
241
- });
242
- }
243
- const PopperAnchor = YStack.styleable(function PopperAnchor2(props, forwardedRef) {
244
- const {
245
- virtualRef,
246
- scope,
247
- ...rest
248
- } = props;
249
- const context = usePopperContextSlow(scope);
250
- const {
251
- getReferenceProps,
252
- refs,
253
- update
254
- } = context;
255
- const ref = React.useRef(null);
256
- const triggerId = React.useId();
257
- React.useEffect(() => {
258
- if (!scope || !context.triggerElements || !ref.current) return;
259
- if (!(ref.current instanceof Element)) return;
260
- const el = ref.current;
261
- context.triggerElements.add(triggerId, el);
262
- return () => {
263
- context.triggerElements?.delete(triggerId);
264
- };
265
- }, [scope, triggerId, context.triggerElements]);
266
- React.useEffect(() => {
267
- if (virtualRef) {
268
- refs.setReference(virtualRef.current);
269
- update();
270
- }
271
- }, [virtualRef]);
272
- const refProps = getReferenceProps?.({
273
- ...rest,
274
- ref
275
- }) || null;
276
- const safeSetReference = React.useCallback(node => {
277
- startTransition(() => {
278
- refs.setReference(node);
279
- });
280
- }, [refs]);
281
- const shouldHandleInHover = isWeb && scope;
282
- const composedRefs = useComposedRefs(forwardedRef, ref, shouldHandleInHover ? void 0 : safeSetReference);
283
- return /* @__PURE__ */jsx(View, {
284
- ...rest,
285
- ...refProps,
286
- ref: composedRefs,
287
- ...(shouldHandleInHover && {
288
- onMouseEnter: e => {
289
- const el = e.currentTarget ?? ref.current;
290
- if (el instanceof HTMLElement) {
291
- flushSync(() => refs.setReference(el));
292
- update();
293
- if (!refProps) return;
294
- refProps.onPointerEnter?.(e);
295
- context.onHoverReference?.(e.nativeEvent);
296
- }
297
- },
298
- onMouseLeave: e => {
299
- context.onLeaveReference?.();
300
- refProps?.onMouseLeave?.(e);
301
- }
302
- })
303
- });
304
- });
305
- const PopperContentFrame = styled(YStack, {
306
- name: "PopperContent",
307
- variants: {
308
- unstyled: {
309
- true: {}
310
- },
311
- size: {
312
- "...size": (val, {
313
- tokens
314
- }) => {
315
- return {
316
- padding: tokens.space[val],
317
- borderRadius: tokens.radius[val]
318
- };
319
- }
320
- }
321
- }
322
- });
323
- const PopperContent = React.forwardRef(function PopperContent2(props, forwardedRef) {
324
- const isAnimatePosControlled = "animatePosition" in props || "enableAnimationForPositionChange" in props;
325
- const {
326
- scope,
327
- animatePosition,
328
- enableAnimationForPositionChange,
329
- children,
330
- passThrough,
331
- unstyled,
332
- ...rest
333
- } = props;
334
- const animatePos = animatePosition ?? enableAnimationForPositionChange;
335
- const context = usePopperContext(scope);
336
- const {
337
- strategy,
338
- placement,
339
- refs,
340
- x,
341
- y,
342
- getFloatingProps,
343
- size,
344
- isPositioned,
345
- transformOrigin,
346
- update
347
- } = context;
348
- const updateRef = React.useRef(update);
349
- updateRef.current = update;
350
- const lastNodeRef = React.useRef(null);
351
- const safeSetFloating = React.useCallback(node => {
352
- const isNewNode = node !== lastNodeRef.current;
353
- if (node) {
354
- lastNodeRef.current = node;
355
- refs.setFloating(node);
356
- if (!isNewNode) updateRef.current?.();
357
- }
358
- }, [refs.setFloating]);
359
- React.useEffect(() => {
360
- return () => {
361
- const ourNode = lastNodeRef.current;
362
- if (ourNode && refs.floating.current === ourNode) refs.setFloating(null);
363
- lastNodeRef.current = null;
364
- };
365
- }, []);
366
- const contentRefs = useComposedRefs(safeSetFloating, forwardedRef);
367
- const [needsMeasure, setNeedsMeasure] = React.useState(animatePos);
368
- useIsomorphicLayoutEffect(() => {
369
- if (needsMeasure && x && y) setNeedsMeasure(false);
370
- }, [needsMeasure, animatePos, x, y]);
371
- const hasBeenPositioned = React.useRef(false);
372
- const lastGoodPosition = React.useRef({
373
- x: 0,
374
- y: 0
375
- });
376
- if (x !== 0 || y !== 0) {
377
- lastGoodPosition.current = {
378
- x,
379
- y
380
- };
381
- if (isPositioned) hasBeenPositioned.current = true;
382
- }
383
- const brieflyZero = hasBeenPositioned.current && x === 0 && y === 0;
384
- const effectiveX = brieflyZero ? lastGoodPosition.current.x : x;
385
- const effectiveY = brieflyZero ? lastGoodPosition.current.y : y;
386
- const hide = !hasBeenPositioned.current && effectiveX === 0 && effectiveY === 0;
387
- const disableAnimationProp = animatePos === "even-when-repositioning" ? needsMeasure : !hasBeenPositioned.current && !isPositioned || needsMeasure;
388
- const [disableAnimation, setDisableAnimation] = React.useState(disableAnimationProp);
389
- React.useEffect(() => {
390
- setDisableAnimation(disableAnimationProp);
391
- }, [disableAnimationProp]);
392
- const frameProps = {
393
- ref: contentRefs,
394
- ...(hide ? {} : {
395
- x: effectiveX || 0,
396
- y: effectiveY || 0
397
- }),
398
- top: 0,
399
- left: 0,
400
- position: strategy,
401
- opacity: hide ? 0 : 1,
402
- ...(isAnimatePosControlled && {
403
- transition: animatePos ? rest.transition : void 0,
404
- animateOnly: animatePos && !disableAnimation ? rest.animateOnly : [],
405
- animatePresence: false
406
- })
407
- };
408
- const {
409
- style,
410
- ...floatingProps
411
- } = getFloatingProps ? getFloatingProps(frameProps) : frameProps;
412
- const transformOriginStyle = isWeb && transformOrigin ? {
413
- transformOrigin: `${transformOrigin.x} ${transformOrigin.y}`
414
- } : void 0;
415
- return /* @__PURE__ */jsx(LayoutMeasurementController, {
416
- disable: !context.open,
417
- children: /* @__PURE__ */jsx(View, {
418
- passThrough,
419
- ref: contentRefs,
420
- direction: rest.direction,
421
- ...(passThrough ? null : floatingProps),
422
- ...(!passThrough && animatePos && {
423
- "data-popper-animate-position": "true"
424
- }),
425
- children: /* @__PURE__ */jsx(PopperContentFrame, {
426
- passThrough,
427
- unstyled,
428
- ...(!passThrough && {
429
- "data-placement": placement,
430
- "data-strategy": strategy,
431
- size,
432
- ...style,
433
- ...transformOriginStyle,
434
- ...rest
435
- }),
436
- children
437
- }, "popper-content-frame")
438
- })
439
- });
440
- });
441
- const PopperArrowFrame = styled(YStack, {
442
- name: "PopperArrow",
443
- variants: {
444
- unstyled: {
445
- false: {
446
- borderColor: "$borderColor",
447
- backgroundColor: "$background",
448
- position: "relative"
449
- }
450
- }
451
- },
452
- defaultVariants: {
453
- unstyled: process.env.GUI_HEADLESS === "1"
454
- }
455
- });
456
- const PopperArrowOuterFrame = styled(YStack, {
457
- name: "PopperArrowOuter",
458
- variants: {
459
- unstyled: {
460
- false: {
461
- position: "absolute",
462
- zIndex: 1e6,
463
- pointerEvents: "none",
464
- overflow: "hidden",
465
- alignItems: "center",
466
- justifyContent: "center"
467
- }
468
- }
469
- },
470
- defaultVariants: {
471
- unstyled: process.env.GUI_HEADLESS === "1"
472
- }
473
- });
474
- const opposites = {
475
- top: "bottom",
476
- right: "left",
477
- bottom: "top",
478
- left: "right"
479
- };
480
- const PopperArrow = React.forwardRef(function PopperArrow2(propsIn, forwardedRef) {
481
- const isAnimatePosControlled = "animatePosition" in propsIn;
482
- const {
483
- scope,
484
- animatePosition,
485
- transition,
486
- ...rest
487
- } = propsIn;
488
- const {
489
- offset,
490
- size: sizeProp,
491
- borderWidth = 0,
492
- ...arrowProps
493
- } = rest;
494
- const context = usePopperContext(scope);
495
- const sizeVal = typeof sizeProp === "number" ? sizeProp : getVariableValue(getSpace(sizeProp ?? context.size, {
496
- shift: -2,
497
- bounds: [2]
498
- }));
499
- const size = Math.max(0, +sizeVal);
500
- const {
501
- placement
502
- } = context;
503
- const refs = useComposedRefs(context.arrowRef, forwardedRef);
504
- const x = context.arrowStyle?.x || 0;
505
- const y = context.arrowStyle?.y || 0;
506
- const arrowPositioned = context.arrowStyle != null;
507
- const primaryPlacement = placement ? placement.split("-")[0] : "top";
508
- const arrowStyle = {
509
- x,
510
- y,
511
- width: size,
512
- height: size
513
- };
514
- const innerArrowStyle = {};
515
- const isVertical = primaryPlacement === "bottom" || primaryPlacement === "top";
516
- if (primaryPlacement) {
517
- arrowStyle[isVertical ? "width" : "height"] = size * 2;
518
- const oppSide = opposites[primaryPlacement];
519
- if (oppSide) {
520
- arrowStyle[oppSide] = -size;
521
- innerArrowStyle[oppSide] = size / 2;
522
- }
523
- if (oppSide === "top" || oppSide === "bottom") arrowStyle.left = 0;
524
- if (oppSide === "left" || oppSide === "right") arrowStyle.top = 0;
525
- useIsomorphicLayoutEffect(() => {
526
- context.onArrowSize?.(size);
527
- }, [size, context.onArrowSize]);
528
- }
529
- return /* @__PURE__ */jsx(PopperArrowOuterFrame, {
530
- ref: refs,
531
- ...arrowStyle,
532
- ...(!arrowPositioned && {
533
- opacity: 0
534
- }),
535
- ...(isAnimatePosControlled && {
536
- transition: animatePosition ? transition : void 0,
537
- animateOnly: animatePosition ? ["transform"] : [],
538
- animatePresence: false
539
- }),
540
- children: /* @__PURE__ */jsx(PopperArrowFrame, {
541
- width: size,
542
- height: size,
543
- ...arrowProps,
544
- ...innerArrowStyle,
545
- rotate: "45deg",
546
- ...(primaryPlacement === "bottom" && {
547
- borderLeftWidth: borderWidth,
548
- borderTopWidth: borderWidth
549
- }),
550
- ...(primaryPlacement === "top" && {
551
- borderBottomWidth: borderWidth,
552
- borderRightWidth: borderWidth
553
- }),
554
- ...(primaryPlacement === "right" && {
555
- borderLeftWidth: borderWidth,
556
- borderBottomWidth: borderWidth
557
- }),
558
- ...(primaryPlacement === "left" && {
559
- borderTopWidth: borderWidth,
560
- borderRightWidth: borderWidth
561
- })
562
- })
563
- });
564
- });
565
- export { Popper, PopperAnchor, PopperArrow, PopperArrowFrame, PopperContent, PopperContentFrame, PopperContextFast, PopperContextSlow, PopperPositionContext, PopperProvider, PopperProviderFast, PopperProviderSlow, setupPopper, usePopperContext, usePopperContextSlow };
566
- //# sourceMappingURL=Popper.mjs.map