@interop-ui/react-focus-guards
Advanced tools
Comparing version 0.0.1-1 to 0.0.1-2
@@ -7,3 +7,4 @@ export function FocusGuards(props: any): any; | ||
export function useFocusGuards(): void; | ||
export const Root: typeof FocusGuards; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
var e,t,n=(e={},t=require("react"),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})),e);var r=0;function u(){n.useEffect((function(){var e,t,n=document.querySelectorAll("[data-interop-ui-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:o()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:o()),r++,function(){1===r&&document.querySelectorAll("[data-interop-ui-focus-guard]").forEach((function(e){return e.remove()})),r--}}),[])}function o(){var e=document.createElement("span");return e.setAttribute("data-interop-ui-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}exports.FocusGuards=function(e){return u(),e.children},exports.useFocusGuards=u; | ||
var e,t,n=(e={},t=require("react"),Object.keys(t).forEach((function(n){"default"!==n&&"__esModule"!==n&&Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[n]}})})),e);var r=0;function o(e){return u(),e.children}function u(){n.useEffect((function(){var e,t,n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:c()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:c()),r++,function(){1===r&&document.querySelectorAll("[data-radix-focus-guard]").forEach((function(e){return e.remove()})),r--}}),[])}function c(){var e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}exports.FocusGuards=o,exports.useFocusGuards=u;var a=o;exports.Root=a; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import*as e from"react";let t=0;export function FocusGuards(e){return useFocusGuards(),e.children}export function useFocusGuards(){e.useEffect((()=>{var e,o;const r=document.querySelectorAll("[data-interop-ui-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:n()),document.body.insertAdjacentElement("beforeend",null!==(o=r[1])&&void 0!==o?o:n()),t++,()=>{1===t&&document.querySelectorAll("[data-interop-ui-focus-guard]").forEach((e=>e.remove())),t--}}),[])}function n(){const e=document.createElement("span");return e.setAttribute("data-interop-ui-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e} | ||
import*as e from"react";let t=0;export function FocusGuards(e){return useFocusGuards(),e.children}export function useFocusGuards(){e.useEffect((()=>{var e,n;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:o()),document.body.insertAdjacentElement("beforeend",null!==(n=r[1])&&void 0!==n?n:o()),t++,()=>{1===t&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),t--}}),[])}function o(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}export const Root=FocusGuards; | ||
//# sourceMappingURL=index.module.js.map |
{ | ||
"name": "@interop-ui/react-focus-guards", | ||
"version": "0.0.1-1", | ||
"version": "0.0.1-2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "source": "src/index.ts", |
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
9124
17