New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@react-md/tooltip

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-md/tooltip - npm Package Compare versions

Comparing version 2.0.0-alpha.13 to 2.0.0-alpha.14

4

es/useTooltipState.js
import { useCallback, useEffect, useRef } from "react";
import { useToggle, useInteractionModeContext, } from "@react-md/utils";
import { useToggle, useUserInteractionMode, } from "@react-md/utils";
import { DEFAULT_DELAY, DEFAULT_THRESHOLD } from "./constants";

@@ -57,3 +57,3 @@ import { useKeyboardState, useMouseState, useTouchState, } from "./useHandlers";

var propPosition = _a.position, defaultPosition = _a.defaultPosition, _b = _a.positionThreshold, positionThreshold = _b === void 0 ? DEFAULT_THRESHOLD : _b, _c = _a.hoverDelay, hoverDelay = _c === void 0 ? DEFAULT_DELAY : _c, _d = _a.touchTimeout, touchTimeout = _d === void 0 ? DEFAULT_DELAY : _d, _e = _a.focusDelay, focusDelay = _e === void 0 ? DEFAULT_DELAY : _e, disableHoverMode = _a.disableHoverMode, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onTouchStart = _a.onTouchStart, onTouchMove = _a.onTouchMove, onFocus = _a.onFocus, onBlur = _a.onBlur, onKeyDown = _a.onKeyDown, onShow = _a.onShow, onHide = _a.onHide;
var mode = useInteractionModeContext();
var mode = useUserInteractionMode();
var initiated = useRef(null);

@@ -60,0 +60,0 @@ var setInitiated = useCallback(function (initiatedBy) {

@@ -63,3 +63,3 @@ "use strict";

var propPosition = _a.position, defaultPosition = _a.defaultPosition, _b = _a.positionThreshold, positionThreshold = _b === void 0 ? constants_1.DEFAULT_THRESHOLD : _b, _c = _a.hoverDelay, hoverDelay = _c === void 0 ? constants_1.DEFAULT_DELAY : _c, _d = _a.touchTimeout, touchTimeout = _d === void 0 ? constants_1.DEFAULT_DELAY : _d, _e = _a.focusDelay, focusDelay = _e === void 0 ? constants_1.DEFAULT_DELAY : _e, disableHoverMode = _a.disableHoverMode, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onTouchStart = _a.onTouchStart, onTouchMove = _a.onTouchMove, onFocus = _a.onFocus, onBlur = _a.onBlur, onKeyDown = _a.onKeyDown, onShow = _a.onShow, onHide = _a.onHide;
var mode = utils_1.useInteractionModeContext();
var mode = utils_1.useUserInteractionMode();
var initiated = react_1.useRef(null);

@@ -66,0 +66,0 @@ var setInitiated = react_1.useCallback(function (initiatedBy) {

{
"name": "@react-md/tooltip",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.14",
"description": "Create accessible tooltips within react-md based on the material design specifications.",

@@ -42,6 +42,6 @@ "scripts": {

"@react-md/portal": "^2.0.0-alpha.13",
"@react-md/theme": "^2.0.0-alpha.13",
"@react-md/transition": "^2.0.0-alpha.13",
"@react-md/typography": "^2.0.0-alpha.13",
"@react-md/utils": "^2.0.0-alpha.13",
"@react-md/theme": "^2.0.0-alpha.14",
"@react-md/transition": "^2.0.0-alpha.14",
"@react-md/typography": "^2.0.0-alpha.14",
"@react-md/utils": "^2.0.0-alpha.14",
"classnames": "^2.2.6",

@@ -59,3 +59,3 @@ "react-transition-group": "^4.3.0"

},
"gitHead": "47959dd8c691deae0310c7cd01b3c275699e6f8c"
"gitHead": "2c22440705bce3fb3cfc5876011e7b3df8be1c03"
}

@@ -5,3 +5,3 @@ import { HTMLAttributes, useCallback, useEffect, useRef } from "react";

useToggle,
useInteractionModeContext,
useUserInteractionMode,
} from "@react-md/utils";

@@ -154,3 +154,3 @@

}: TooltipStateOptions): ReturnValue {
const mode = useInteractionModeContext();
const mode = useUserInteractionMode();
const initiated = useRef<TooltipInitiated>(null);

@@ -157,0 +157,0 @@ const setInitiated = useCallback((initiatedBy: TooltipInitiated) => {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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