@luminati-io/uikit 5.2.6 → 5.2.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -45392,7 +45392,6 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45392
45392
|
|
45393
45393
|
|
45394
45394
|
|
45395
|
-
var CLOSE_DELAY = 200;
|
45396
45395
|
var Tooltip = function Tooltip(_ref) {
|
45397
45396
|
var children = _ref.children,
|
45398
45397
|
tooltip = _ref.tooltip,
|
@@ -45426,9 +45425,9 @@ var Tooltip = function Tooltip(_ref) {
|
|
45426
45425
|
setVisible = _useState8[1];
|
45427
45426
|
var hideTimer = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
45428
45427
|
var showTimer = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
45429
|
-
var showDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(_showDelay, Tooltip.showDelay)
|
45430
|
-
var hideDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(_hideDelay, Tooltip.hideDelay)
|
45431
|
-
var interactiveHideDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(_interactiveHideDelay, Tooltip.interactiveHideDelay)
|
45428
|
+
var showDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(_showDelay, Tooltip.showDelay);
|
45429
|
+
var hideDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(_hideDelay, Tooltip.hideDelay);
|
45430
|
+
var interactiveHideDelay = (0,_util__WEBPACK_IMPORTED_MODULE_4__.firstDefined)(_interactiveHideDelay, Tooltip.interactiveHideDelay);
|
45432
45431
|
var clearTimers = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function () {
|
45433
45432
|
clearTimeout(showTimer.current);
|
45434
45433
|
clearTimeout(hideTimer.current);
|
@@ -45514,6 +45513,9 @@ Tooltip.propTypes = {
|
|
45514
45513
|
hideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
45515
45514
|
interactiveHideDelay: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
45516
45515
|
};
|
45516
|
+
Tooltip.showDelay = 0;
|
45517
|
+
Tooltip.hideDelay = 0;
|
45518
|
+
Tooltip.interactiveHideDelay = 200;
|
45517
45519
|
var withTooltip = function withTooltip(Comp, tooltipProps) {
|
45518
45520
|
return function WithTooltip(props) {
|
45519
45521
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Tooltip, tooltipProps, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Comp, props));
|