Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-types/tooltip

Package Overview
Dependencies
Maintainers
2
Versions
778
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-types/tooltip - npm Package Compare versions

Comparing version 3.0.0-nightly.2401 to 3.0.0-nightly-641446f65-240905

12

package.json
{
"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
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc