@plasmicpkgs/react-aria 0.0.115 → 0.0.117

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.
@@ -3083,20 +3083,28 @@ const { variants: variants$a, withObservedValues: withObservedValues$9 } = pickA
3083
3083
  );
3084
3084
  function BaseOverlayArrow({
3085
3085
  children,
3086
- plasmicUpdateVariant
3086
+ plasmicUpdateVariant,
3087
+ className
3087
3088
  }) {
3088
3089
  const popoverContext = React.useContext(PopoverContext);
3089
3090
  const tooltipContext = React.useContext(TooltipContext);
3090
3091
  const isStandalone = !popoverContext && !tooltipContext;
3091
- const overlayArrow = /* @__PURE__ */ React.createElement(OverlayArrow, { style: __spreadValues$b({ lineHeight: "0" }, COMMON_STYLES) }, ({ placement }) => withObservedValues$9(
3092
- children,
3092
+ const overlayArrow = /* @__PURE__ */ React.createElement(
3093
+ OverlayArrow,
3093
3094
  {
3094
- placementTop: placement === "top",
3095
- placementLeft: placement === "left",
3096
- placementRight: placement === "right"
3095
+ className,
3096
+ style: __spreadValues$b({ lineHeight: "0" }, COMMON_STYLES)
3097
3097
  },
3098
- plasmicUpdateVariant
3099
- ));
3098
+ ({ placement }) => withObservedValues$9(
3099
+ children,
3100
+ {
3101
+ placementTop: placement === "top",
3102
+ placementLeft: placement === "left",
3103
+ placementRight: placement === "right"
3104
+ },
3105
+ plasmicUpdateVariant
3106
+ )
3107
+ );
3100
3108
  if (isStandalone) {
3101
3109
  return /* @__PURE__ */ React.createElement("div", { style: { position: "relative" } }, overlayArrow);
3102
3110
  }
@@ -5028,7 +5036,7 @@ function ControlledBaseTooltip(props) {
5028
5036
  plasmicUpdateVariant,
5029
5037
  __plasmic_selection_prop__
5030
5038
  } = props;
5031
- const isOpen2 = useIsOpen({
5039
+ const isCanvasAwareOpen = useIsOpen({
5032
5040
  triggerSlotName: "children",
5033
5041
  isOpen,
5034
5042
  __plasmic_selection_prop__
@@ -5036,6 +5044,7 @@ function ControlledBaseTooltip(props) {
5036
5044
  const ref = useRef(null);
5037
5045
  const tooltipId = useId();
5038
5046
  const state = useTooltipTriggerState(__spreadProps(__spreadValues({}, props), {
5047
+ isOpen: isCanvasAwareOpen,
5039
5048
  trigger: trigger === "focus" ? trigger : void 0
5040
5049
  }));
5041
5050
  return /* @__PURE__ */ React.createElement(Provider, { values: [[TooltipTriggerStateContext, state]] }, /* @__PURE__ */ React.createElement(
@@ -5043,7 +5052,7 @@ function ControlledBaseTooltip(props) {
5043
5052
  {
5044
5053
  ref,
5045
5054
  className,
5046
- tooltipId: isOpen2 ? tooltipId : void 0,
5055
+ tooltipId: state.isOpen ? tooltipId : void 0,
5047
5056
  isDisabled,
5048
5057
  onOpenChange,
5049
5058
  triggerOnFocusOnly: trigger === "focus"
@@ -5054,7 +5063,6 @@ function ControlledBaseTooltip(props) {
5054
5063
  {
5055
5064
  triggerRef: ref,
5056
5065
  id: tooltipId,
5057
- isOpen: isOpen2,
5058
5066
  offset,
5059
5067
  delay,
5060
5068
  closeDelay,