@react-md/tooltip
Advanced tools
Comparing version 2.0.0-alpha.13 to 2.0.0-alpha.14
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
586465