@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.
- package/dist/.tsbuildinfo +1 -1
- package/dist/react-aria.esm.js +12 -11
- package/dist/react-aria.esm.js.map +1 -1
- package/dist/react-aria.js +12 -11
- package/dist/react-aria.js.map +1 -1
- package/package.json +3 -3
- package/skinny/registerTooltip.cjs.js +12 -11
- package/skinny/registerTooltip.cjs.js.map +1 -1
- package/skinny/registerTooltip.esm.js +12 -11
- package/skinny/registerTooltip.esm.js.map +1 -1
package/dist/react-aria.esm.js
CHANGED
|
@@ -5096,8 +5096,6 @@ function ControlledBaseTooltip(props) {
|
|
|
5096
5096
|
const {
|
|
5097
5097
|
children,
|
|
5098
5098
|
isDisabled = false,
|
|
5099
|
-
delay,
|
|
5100
|
-
closeDelay,
|
|
5101
5099
|
trigger,
|
|
5102
5100
|
isOpen,
|
|
5103
5101
|
tooltipContent,
|
|
@@ -5106,9 +5104,7 @@ function ControlledBaseTooltip(props) {
|
|
|
5106
5104
|
offset,
|
|
5107
5105
|
crossOffset,
|
|
5108
5106
|
shouldFlip,
|
|
5109
|
-
className
|
|
5110
|
-
onOpenChange = () => {
|
|
5111
|
-
}
|
|
5107
|
+
className
|
|
5112
5108
|
} = props;
|
|
5113
5109
|
const isCanvasAwareOpen = useIsOpen({
|
|
5114
5110
|
triggerSlotName: "children",
|
|
@@ -5139,12 +5135,9 @@ function ControlledBaseTooltip(props) {
|
|
|
5139
5135
|
triggerRef: ref,
|
|
5140
5136
|
id: tooltipId,
|
|
5141
5137
|
offset,
|
|
5142
|
-
delay,
|
|
5143
|
-
closeDelay,
|
|
5144
5138
|
crossOffset,
|
|
5145
5139
|
shouldFlip,
|
|
5146
5140
|
className: resetClassName,
|
|
5147
|
-
onOpenChange,
|
|
5148
5141
|
placement
|
|
5149
5142
|
},
|
|
5150
5143
|
tooltipContent
|
|
@@ -5229,9 +5222,14 @@ function registerTooltip(loader, overrides) {
|
|
|
5229
5222
|
},
|
|
5230
5223
|
closeDelay: {
|
|
5231
5224
|
type: "number",
|
|
5232
|
-
// Default value is explicitly set to
|
|
5233
|
-
|
|
5234
|
-
|
|
5225
|
+
// Default value is explicitly set to 50 to prevent users from mistakenly thinking the tooltip isn’t closing due to a delay.
|
|
5226
|
+
// We don't set it to 0, because when offset=0 and closeDelay=0, entering from the tooltip side causes the
|
|
5227
|
+
// cursor to immediately move from trigger to tooltip content. This fires
|
|
5228
|
+
// onHoverEnd on the trigger and closes the tooltip instantly.
|
|
5229
|
+
// A small closeDelay (>=50ms) allows it to stabilize.
|
|
5230
|
+
defaultValue: 50,
|
|
5231
|
+
defaultValueHint: 50,
|
|
5232
|
+
min: 50,
|
|
5235
5233
|
description: "The delay (in milliseconds) for the tooltip to close."
|
|
5236
5234
|
},
|
|
5237
5235
|
trigger: {
|
|
@@ -5251,6 +5249,9 @@ function registerTooltip(loader, overrides) {
|
|
|
5251
5249
|
uncontrolledProp: "defaultOpen",
|
|
5252
5250
|
description: "Whether the overlay is open by default",
|
|
5253
5251
|
defaultValueHint: false,
|
|
5252
|
+
// Without a default value, the tooltip starts as uncontrolled and then switches to controlled on first interaction,
|
|
5253
|
+
// which can cause React warnings and unpredictable behavior.
|
|
5254
|
+
defaultValue: false,
|
|
5254
5255
|
hidden: () => true
|
|
5255
5256
|
},
|
|
5256
5257
|
onOpenChange: {
|