@plasmicpkgs/react-aria 0.0.167 → 0.0.169

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.
@@ -5104,8 +5104,6 @@ function ControlledBaseTooltip(props) {
5104
5104
  const {
5105
5105
  children,
5106
5106
  isDisabled = false,
5107
- delay,
5108
- closeDelay,
5109
5107
  trigger,
5110
5108
  isOpen,
5111
5109
  tooltipContent,
@@ -5114,9 +5112,7 @@ function ControlledBaseTooltip(props) {
5114
5112
  offset,
5115
5113
  crossOffset,
5116
5114
  shouldFlip,
5117
- className,
5118
- onOpenChange = () => {
5119
- }
5115
+ className
5120
5116
  } = props;
5121
5117
  const isCanvasAwareOpen = useIsOpen({
5122
5118
  triggerSlotName: "children",
@@ -5147,12 +5143,9 @@ function ControlledBaseTooltip(props) {
5147
5143
  triggerRef: ref,
5148
5144
  id: tooltipId,
5149
5145
  offset,
5150
- delay,
5151
- closeDelay,
5152
5146
  crossOffset,
5153
5147
  shouldFlip,
5154
5148
  className: resetClassName,
5155
- onOpenChange,
5156
5149
  placement
5157
5150
  },
5158
5151
  tooltipContent
@@ -5237,9 +5230,14 @@ function registerTooltip(loader, overrides) {
5237
5230
  },
5238
5231
  closeDelay: {
5239
5232
  type: "number",
5240
- // Default value is explicitly set to 0 to prevent users from mistakenly thinking the tooltip isn’t closing due to a delay.
5241
- defaultValue: 0,
5242
- defaultValueHint: 0,
5233
+ // Default value is explicitly set to 50 to prevent users from mistakenly thinking the tooltip isn’t closing due to a delay.
5234
+ // We don't set it to 0, because when offset=0 and closeDelay=0, entering from the tooltip side causes the
5235
+ // cursor to immediately move from trigger to tooltip content. This fires
5236
+ // onHoverEnd on the trigger and closes the tooltip instantly.
5237
+ // A small closeDelay (>=50ms) allows it to stabilize.
5238
+ defaultValue: 50,
5239
+ defaultValueHint: 50,
5240
+ min: 50,
5243
5241
  description: "The delay (in milliseconds) for the tooltip to close."
5244
5242
  },
5245
5243
  trigger: {
@@ -5259,6 +5257,9 @@ function registerTooltip(loader, overrides) {
5259
5257
  uncontrolledProp: "defaultOpen",
5260
5258
  description: "Whether the overlay is open by default",
5261
5259
  defaultValueHint: false,
5260
+ // Without a default value, the tooltip starts as uncontrolled and then switches to controlled on first interaction,
5261
+ // which can cause React warnings and unpredictable behavior.
5262
+ defaultValue: false,
5262
5263
  hidden: () => true
5263
5264
  },
5264
5265
  onOpenChange: {