@react-types/tooltip
Advanced tools
Comparing version 3.0.0-nightly.2401 to 3.0.0-nightly-641446f65-240905
{ | ||
"name": "@react-types/tooltip", | ||
"version": "3.0.0-nightly.2401+61d8633a", | ||
"version": "3.0.0-nightly-641446f65-240905", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,7 +12,7 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/overlays": "3.2.1-nightly.2401+61d8633a", | ||
"@react-types/shared": "3.0.0-nightly.723+61d8633a" | ||
"@react-types/overlays": "^3.0.0-nightly-641446f65-240905", | ||
"@react-types/shared": "^3.0.0-nightly-641446f65-240905" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
}, | ||
@@ -22,3 +22,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "61d8633a588d2603c84651e81ccdefb50f1bdff9" | ||
} | ||
"stableVersion": "3.4.11" | ||
} |
@@ -14,9 +14,33 @@ /* | ||
import {AriaLabelingProps, DOMProps, StyleProps} from '@react-types/shared'; | ||
import {OverlayTriggerProps, PositionProps} from '@react-types/overlays'; | ||
import {OverlayTriggerProps, Placement, PositionProps} from '@react-types/overlays'; | ||
import {ReactElement, ReactNode} from 'react'; | ||
export interface TooltipTriggerProps extends OverlayTriggerProps { | ||
/** | ||
* Whether the tooltip should be disabled, independent from the trigger. | ||
*/ | ||
isDisabled?: boolean, | ||
/** | ||
* The delay time for the tooltip to show up. [See guidelines](https://spectrum.adobe.com/page/tooltip/#Immediate-or-delayed-appearance). | ||
* @default 1500 | ||
*/ | ||
delay?: number, | ||
/** | ||
* The delay time for the tooltip to close. [See guidelines](https://spectrum.adobe.com/page/tooltip/#Warmup-and-cooldown). | ||
* @default 500 | ||
*/ | ||
closeDelay?: number, | ||
/** | ||
* By default, opens for both focus and hover. Can be made to open only for focus. | ||
*/ | ||
trigger?: 'focus' | ||
} | ||
export interface SpectrumTooltipTriggerProps extends Omit<TooltipTriggerProps, 'closeDelay'>, PositionProps { | ||
children: [ReactElement, ReactElement], | ||
/** | ||
* The additional offset applied along the main axis between the element and its | ||
@@ -28,15 +52,9 @@ * anchor element. | ||
/** | ||
* The additional offset applied along the cross axis between the element and its | ||
* anchor element. | ||
* @default 0 | ||
* The placement of the tooltip with respect to the trigger. | ||
* @default 'top' | ||
*/ | ||
crossOffset?: number | ||
placement?: Placement | ||
} | ||
export interface SpectrumTooltipTriggerProps extends TooltipTriggerProps, PositionProps { | ||
children: [ReactElement, ReactElement] | ||
} | ||
export interface TooltipProps { | ||
children: ReactNode, | ||
isOpen?: boolean | ||
@@ -48,5 +66,19 @@ } | ||
export interface SpectrumTooltipProps extends AriaTooltipProps, StyleProps { | ||
/** | ||
* The [visual style](https://spectrum.adobe.com/page/tooltip/#Semantic-variants) of the Tooltip. | ||
*/ | ||
variant?: 'neutral' | 'positive' | 'negative' | 'info', | ||
/** | ||
* The placement of the element with respect to its anchor element. | ||
* @default 'top' | ||
*/ | ||
placement?: 'start' | 'end' | 'right' | 'left' | 'top' | 'bottom', | ||
showIcon?: boolean | ||
/** | ||
* Whether the element is rendered. | ||
*/ | ||
showIcon?: boolean, | ||
children: ReactNode | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
68
0
3327
3
+ Added@react-types/overlays@3.8.10(transitive)
+ Added@react-types/shared@3.25.0(transitive)
+ Addedreact@18.3.1(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedreact@17.0.2(transitive)
Updated@react-types/overlays@^3.0.0-nightly-641446f65-240905