@plasmicpkgs/react-aria 0.0.131 → 0.0.133

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.
@@ -3121,7 +3121,7 @@ function registerOverlayArrow(loader, overrides) {
3121
3121
  displayName: "Aria Overlay Arrow",
3122
3122
  importPath: "@plasmicpkgs/react-aria/skinny/registerOverlayArrow",
3123
3123
  importName: "BaseOverlayArrow",
3124
- styleSections: false,
3124
+ styleSections: ["visibility"],
3125
3125
  variants: variants$9,
3126
3126
  props: {
3127
3127
  children: {
@@ -5039,7 +5039,6 @@ function ControlledBaseTooltip(props) {
5039
5039
  className,
5040
5040
  tooltipId: state.isOpen ? tooltipId : void 0,
5041
5041
  isDisabled,
5042
- onOpenChange,
5043
5042
  triggerOnFocusOnly: trigger === "focus"
5044
5043
  },
5045
5044
  children
@@ -5062,27 +5061,17 @@ function ControlledBaseTooltip(props) {
5062
5061
  );
5063
5062
  }
5064
5063
  const TriggerWrapper = React__default.default.forwardRef(
5065
- function TriggerWrapper_({
5066
- children,
5067
- onOpenChange,
5068
- isDisabled,
5069
- triggerOnFocusOnly,
5070
- tooltipId,
5071
- className
5072
- }, ref) {
5064
+ function TriggerWrapper_({ children, isDisabled, triggerOnFocusOnly, tooltipId, className }, ref) {
5065
+ const state = React.useContext(reactAriaComponents.TooltipTriggerStateContext);
5073
5066
  const { hoverProps } = reactAria.useHover({
5074
5067
  isDisabled,
5075
- onHoverStart: () => !triggerOnFocusOnly && onOpenChange(true),
5076
- onHoverEnd: () => !triggerOnFocusOnly && onOpenChange(false)
5068
+ onHoverStart: () => !triggerOnFocusOnly && state.open(),
5069
+ onHoverEnd: () => !triggerOnFocusOnly && state.close()
5077
5070
  });
5078
5071
  const { focusWithinProps } = reactAria.useFocusWithin({
5079
5072
  isDisabled,
5080
- onFocusWithin: () => {
5081
- onOpenChange(true);
5082
- },
5083
- onBlurWithin: () => {
5084
- onOpenChange(false);
5085
- }
5073
+ onFocusWithin: () => state.open(),
5074
+ onBlurWithin: () => state.close()
5086
5075
  });
5087
5076
  const mergedProps = reactAria.mergeProps(hoverProps, focusWithinProps, {
5088
5077
  "aria-describedby": tooltipId,