@pluralsight/react-utils
Advanced tools
Comparing version 0.0.0-alpha-49042a to 0.0.0-alpha-500ff4
import type { RefObject } from 'react'; | ||
export declare function useFocusTrap(triggerRef: RefObject<HTMLButtonElement>): { | ||
ref: RefObject<HTMLElement>; | ||
initFocusTrap: () => void; | ||
setupFocusTrap: () => void; | ||
onKeydown: (event: any) => void; | ||
}; |
@@ -53,3 +53,3 @@ "use strict"; | ||
ref: modalRef, | ||
initFocusTrap: handleInitFocusTrap, | ||
setupFocusTrap: handleInitFocusTrap, | ||
onKeydown: handleFocus, | ||
@@ -56,0 +56,0 @@ }; |
@@ -0,1 +1,2 @@ | ||
export { useEscToClose } from './hooks/useEscToClose'; | ||
export { useFocusTrap } from './hooks/useFocusTrap'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useFocusTrap = void 0; | ||
exports.useFocusTrap = exports.useEscToClose = void 0; | ||
var useEscToClose_1 = require("./hooks/useEscToClose"); | ||
Object.defineProperty(exports, "useEscToClose", { enumerable: true, get: function () { return useEscToClose_1.useEscToClose; } }); | ||
var useFocusTrap_1 = require("./hooks/useFocusTrap"); | ||
Object.defineProperty(exports, "useFocusTrap", { enumerable: true, get: function () { return useFocusTrap_1.useFocusTrap; } }); |
@@ -0,1 +1,2 @@ | ||
export { useEscToClose } from './hooks/useEscToClose' | ||
export { useFocusTrap } from './hooks/useFocusTrap' |
{ | ||
"name": "@pluralsight/react-utils", | ||
"version": "0.0.0-alpha-49042a", | ||
"version": "0.0.0-alpha-500ff4", | ||
"description": "A set of React custom hooks for Pluralsight.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
6633
9
95
299