@proscom/ui-react
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -11,3 +11,3 @@ import { useCallback } from 'react'; | ||
export var useDelegateFocus = function (targetRef, _a) { | ||
var onClickProp = (_a === void 0 ? {} : _a).onClick; | ||
var _b = _a === void 0 ? {} : _a, onClickProp = _b.onClick; | ||
var onClick = useCallback(function (event) { | ||
@@ -14,0 +14,0 @@ if (targetRef.current && event.target !== targetRef.current) { |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -13,4 +13,4 @@ "use strict"; | ||
*/ | ||
exports.useDelegateFocus = function (targetRef, _a) { | ||
var onClickProp = (_a === void 0 ? {} : _a).onClick; | ||
var useDelegateFocus = function (targetRef, _a) { | ||
var _b = _a === void 0 ? {} : _a, onClickProp = _b.onClick; | ||
var onClick = react_1.useCallback(function (event) { | ||
@@ -26,2 +26,3 @@ if (targetRef.current && event.target !== targetRef.current) { | ||
}; | ||
exports.useDelegateFocus = useDelegateFocus; | ||
//# sourceMappingURL=useDelegateFocus.js.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -10,3 +10,3 @@ "use strict"; | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
@@ -13,0 +13,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "@proscom/ui-react", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Proscom React utilities", | ||
@@ -36,8 +36,8 @@ "author": "Andrew Starostin <a.starostin@proscom.ru>", | ||
"peerDependencies": { | ||
"react": "^16.8.0" | ||
"react": "^16.8.0 || ^17.0.0" | ||
}, | ||
"devDependencies": { | ||
"react": "^16.13.1" | ||
"react": "^17.0.1" | ||
}, | ||
"gitHead": "4eb9da7112f5fd1b1089ff28104967a2a400654f" | ||
"gitHead": "c9f33be94a9fa7ae0448e3d57ed3d811efc81660" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
53947
989