@tamagui/focus-guard 2.7.7 → 3.0.0-beta.643.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -5,64 +6,57 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __getProtoOf = Object.getPrototypeOf;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: true
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
30
26
  }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
28
  var FocusGuard_exports = {};
35
29
  __export(FocusGuard_exports, {
36
- FocusGuards: () => FocusGuards,
37
- Root: () => Root,
38
- useFocusGuards: () => useFocusGuards
30
+ FocusGuards: () => FocusGuards,
31
+ Root: () => Root,
32
+ useFocusGuards: () => useFocusGuards
39
33
  });
40
34
  module.exports = __toCommonJS(FocusGuard_exports);
41
35
  var React = __toESM(require("react"), 1);
42
36
  let count = 0;
43
37
  function FocusGuards(props) {
44
- useFocusGuards();
45
- return props.children;
38
+ useFocusGuards();
39
+ return props.children;
46
40
  }
47
41
  function useFocusGuards() {
48
- React.useEffect(() => {
49
- const edgeGuards = document.querySelectorAll("[data-tamagui-focus-guard]");
50
- document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
51
- document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
52
- count++;
53
- return () => {
54
- if (count === 1) {
55
- document.querySelectorAll("[data-tamagui-focus-guard]").forEach(node => node.remove());
56
- }
57
- count--;
58
- };
59
- }, []);
42
+ React.useEffect(() => {
43
+ const edgeGuards = document.querySelectorAll("[data-tamagui-focus-guard]");
44
+ document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
45
+ document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
46
+ count++;
47
+ return () => {
48
+ if (count === 1) {
49
+ document.querySelectorAll("[data-tamagui-focus-guard]").forEach((node) => node.remove());
50
+ }
51
+ count--;
52
+ };
53
+ }, []);
60
54
  }
61
55
  function createFocusGuard() {
62
- const element = document.createElement("span");
63
- element.setAttribute("data-tamagui-focus-guard", "");
64
- element.tabIndex = 0;
65
- element.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none";
66
- return element;
56
+ const element = document.createElement("span");
57
+ element.setAttribute("data-tamagui-focus-guard", "");
58
+ element.tabIndex = 0;
59
+ element.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none";
60
+ return element;
67
61
  }
68
- const Root = FocusGuards;
62
+ const Root = FocusGuards;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var FocusGuard_native_exports = {};
25
+ __export(FocusGuard_native_exports, {
26
+ FocusGuards: () => FocusGuards,
27
+ Root: () => Root,
28
+ useFocusGuards: () => useFocusGuards
29
+ });
30
+ module.exports = __toCommonJS(FocusGuard_native_exports);
31
+ function FocusGuards(props) {
32
+ useFocusGuards();
33
+ return props.children;
34
+ }
35
+ function useFocusGuards() {
36
+ return null;
37
+ }
38
+ var Root = FocusGuards;
@@ -1,40 +1,40 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
24
  var FocusGuard_native_exports = {};
26
25
  __export(FocusGuard_native_exports, {
27
- FocusGuards: () => FocusGuards,
28
- Root: () => Root,
29
- useFocusGuards: () => useFocusGuards
26
+ FocusGuards: () => FocusGuards,
27
+ Root: () => Root,
28
+ useFocusGuards: () => useFocusGuards
30
29
  });
31
30
  module.exports = __toCommonJS(FocusGuard_native_exports);
32
31
  function FocusGuards(props) {
33
- useFocusGuards();
34
- return props.children;
32
+ useFocusGuards();
33
+ return props.children;
35
34
  }
36
35
  function useFocusGuards() {
37
- return null;
36
+ return null;
38
37
  }
39
38
  var Root = FocusGuards;
39
+
40
40
  //# sourceMappingURL=FocusGuard.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FocusGuard_native_exports","__export","FocusGuards","Root","useFocusGuards","module","exports","__toCommonJS","props","children"],"sources":["../../src/FocusGuard.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAP,yBAAA;AAAA,SAASE,YAAYM,KAAA,EAAO;EACxBJ,cAAA,CAAe;EACf,OAAOI,KAAA,CAAMC,QAAA;AACjB;AACA,SAASL,eAAA,EAAiB;EACtB,OAAO;AACX;AACA,IAAID,IAAA,GAAOD,WAAA","ignoreList":[]}
1
+ {"version":3,"file":"FocusGuard.native.js","names":[],"sources":["cjs/FocusGuard.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar FocusGuard_native_exports = {};\n__export(FocusGuard_native_exports, {\n FocusGuards: () => FocusGuards,\n Root: () => Root,\n useFocusGuards: () => useFocusGuards\n});\nmodule.exports = __toCommonJS(FocusGuard_native_exports);\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n return null;\n}\nvar Root = FocusGuards;\n//# sourceMappingURL=FocusGuard.native.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B;CAClC,mBAAmB;CACnB,YAAY;CACZ,sBAAsB;AACxB,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,SAAS,YAAY,OAAO;CAC1B,eAAe;CACf,OAAO,MAAM;AACf;AACA,SAAS,iBAAiB;CACxB,OAAO;AACT;AACA,IAAI,OAAO"}
@@ -1,20 +1,19 @@
1
+
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from === "object" || typeof from === "function") {
7
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
- get: () => from[key],
9
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
- });
11
- }
12
- return to;
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
+ get: () => from[key],
10
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
+ });
12
+ }
13
+ return to;
13
14
  };
14
15
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: true
17
- }), mod);
16
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
17
  var index_exports = {};
19
18
  module.exports = __toCommonJS(index_exports);
20
- __reExport(index_exports, require("./FocusGuard.cjs"), module.exports);
19
+ __reExport(index_exports, require("./FocusGuard.cjs"), module.exports);
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var index_exports = {};
20
+ module.exports = __toCommonJS(index_exports);
21
+ __reExport(index_exports, require("./FocusGuard.native.js"), module.exports);
@@ -1,23 +1,23 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
15
16
  };
16
17
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
19
  var index_exports = {};
21
20
  module.exports = __toCommonJS(index_exports);
22
21
  __reExport(index_exports, require("./FocusGuard.native.js"), module.exports);
22
+
23
23
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./FocusGuard\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,wBAAc,GAAG,OAAO,OAAO"}
@@ -1,30 +1,32 @@
1
1
  import * as React from "react";
2
+
2
3
  let count = 0;
3
4
  function FocusGuards(props) {
4
- useFocusGuards();
5
- return props.children;
5
+ useFocusGuards();
6
+ return props.children;
6
7
  }
7
8
  function useFocusGuards() {
8
- React.useEffect(() => {
9
- const edgeGuards = document.querySelectorAll("[data-tamagui-focus-guard]");
10
- document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
11
- document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
12
- count++;
13
- return () => {
14
- if (count === 1) {
15
- document.querySelectorAll("[data-tamagui-focus-guard]").forEach(node => node.remove());
16
- }
17
- count--;
18
- };
19
- }, []);
9
+ React.useEffect(() => {
10
+ const edgeGuards = document.querySelectorAll("[data-tamagui-focus-guard]");
11
+ document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
12
+ document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
13
+ count++;
14
+ return () => {
15
+ if (count === 1) {
16
+ document.querySelectorAll("[data-tamagui-focus-guard]").forEach((node) => node.remove());
17
+ }
18
+ count--;
19
+ };
20
+ }, []);
20
21
  }
21
22
  function createFocusGuard() {
22
- const element = document.createElement("span");
23
- element.setAttribute("data-tamagui-focus-guard", "");
24
- element.tabIndex = 0;
25
- element.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none";
26
- return element;
23
+ const element = document.createElement("span");
24
+ element.setAttribute("data-tamagui-focus-guard", "");
25
+ element.tabIndex = 0;
26
+ element.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none";
27
+ return element;
27
28
  }
28
29
  const Root = FocusGuards;
30
+
29
31
  export { FocusGuards, Root, useFocusGuards };
30
32
  //# sourceMappingURL=FocusGuard.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","count","FocusGuards","props","useFocusGuards","children","useEffect","edgeGuards","document","querySelectorAll","body","insertAdjacentElement","createFocusGuard","forEach","node","remove","element","createElement","setAttribute","tabIndex","style","cssText","Root"],"sources":["../../src/FocusGuard.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGvB,IAAIC,KAAA,GAAQ;AAEZ,SAASC,YAAYC,KAAA,EAAY;EAC/BC,cAAA,CAAe;EACf,OAAOD,KAAA,CAAME,QAAA;AACf;AAMA,SAASD,eAAA,EAAiB;EACxBJ,KAAA,CAAMM,SAAA,CAAU,MAAM;IACpB,MAAMC,UAAA,GAAaC,QAAA,CAASC,gBAAA,CAAiB,4BAA4B;IACzED,QAAA,CAASE,IAAA,CAAKC,qBAAA,CAAsB,cAAcJ,UAAA,CAAW,CAAC,KAAKK,gBAAA,CAAiB,CAAC;IACrFJ,QAAA,CAASE,IAAA,CAAKC,qBAAA,CAAsB,aAAaJ,UAAA,CAAW,CAAC,KAAKK,gBAAA,CAAiB,CAAC;IACpFX,KAAA;IAEA,OAAO,MAAM;MACX,IAAIA,KAAA,KAAU,GAAG;QACfO,QAAA,CACGC,gBAAA,CAAiB,4BAA4B,EAC7CI,OAAA,CAASC,IAAA,IAASA,IAAA,CAAKC,MAAA,CAAO,CAAC;MACpC;MACAd,KAAA;IACF;EACF,GAAG,EAAE;AACP;AAEA,SAASW,iBAAA,EAAmB;EAC1B,MAAMI,OAAA,GAAUR,QAAA,CAASS,aAAA,CAAc,MAAM;EAC7CD,OAAA,CAAQE,YAAA,CAAa,4BAA4B,EAAE;EACnDF,OAAA,CAAQG,QAAA,GAAW;EACnBH,OAAA,CAAQI,KAAA,CAAMC,OAAA,GACZ;EACF,OAAOL,OAAA;AACT;AAEA,MAAMM,IAAA,GAAOpB,WAAA","ignoreList":[]}
1
+ {"version":3,"file":"FocusGuard.js","names":[],"sources":["esm/FocusGuard.js"],"sourcesContent":["import * as React from \"react\";\nlet count = 0;\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n React.useEffect(() => {\n const edgeGuards = document.querySelectorAll(\"[data-tamagui-focus-guard]\");\n document.body.insertAdjacentElement(\"afterbegin\", edgeGuards[0] ?? createFocusGuard());\n document.body.insertAdjacentElement(\"beforeend\", edgeGuards[1] ?? createFocusGuard());\n count++;\n return () => {\n if (count === 1) {\n document.querySelectorAll(\"[data-tamagui-focus-guard]\").forEach((node) => node.remove());\n }\n count--;\n };\n }, []);\n}\nfunction createFocusGuard() {\n const element = document.createElement(\"span\");\n element.setAttribute(\"data-tamagui-focus-guard\", \"\");\n element.tabIndex = 0;\n element.style.cssText = \"outline: none; opacity: 0; position: fixed; pointer-events: none\";\n return element;\n}\nconst Root = FocusGuards;\nexport {\n FocusGuards,\n Root,\n useFocusGuards\n};\n//# sourceMappingURL=FocusGuard.js.map\n"],"mappings":";;;AACA,IAAI,QAAQ;AACZ,SAAS,YAAY,OAAO;CAC1B,eAAe;CACf,OAAO,MAAM;AACf;AACA,SAAS,iBAAiB;CACxB,MAAM,gBAAgB;EACpB,MAAM,aAAa,SAAS,iBAAiB,4BAA4B;EACzE,SAAS,KAAK,sBAAsB,cAAc,WAAW,MAAM,iBAAiB,CAAC;EACrF,SAAS,KAAK,sBAAsB,aAAa,WAAW,MAAM,iBAAiB,CAAC;EACpF;EACA,aAAa;GACX,IAAI,UAAU,GAAG;IACf,SAAS,iBAAiB,4BAA4B,EAAE,SAAS,SAAS,KAAK,OAAO,CAAC;GACzF;GACA;EACF;CACF,GAAG,CAAC,CAAC;AACP;AACA,SAAS,mBAAmB;CAC1B,MAAM,UAAU,SAAS,cAAc,MAAM;CAC7C,QAAQ,aAAa,4BAA4B,EAAE;CACnD,QAAQ,WAAW;CACnB,QAAQ,MAAM,UAAU;CACxB,OAAO;AACT;AACA,MAAM,OAAO"}
@@ -1,10 +1,11 @@
1
1
  function FocusGuards(props) {
2
- useFocusGuards();
3
- return props.children;
2
+ useFocusGuards();
3
+ return props.children;
4
4
  }
5
5
  function useFocusGuards() {
6
- return null;
6
+ return null;
7
7
  }
8
8
  var Root = FocusGuards;
9
+
9
10
  export { FocusGuards, Root, useFocusGuards };
10
11
  //# sourceMappingURL=FocusGuard.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FocusGuards","props","useFocusGuards","children","Root"],"sources":["../../src/FocusGuard.native.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,YAAYC,KAAA,EAAO;EACxBC,cAAA,CAAe;EACf,OAAOD,KAAA,CAAME,QAAA;AACjB;AACA,SAASD,eAAA,EAAiB;EACtB,OAAO;AACX;AACA,IAAIE,IAAA,GAAOJ,WAAA","ignoreList":[]}
1
+ {"version":3,"file":"FocusGuard.native.js","names":[],"sources":["esm/FocusGuard.native.js"],"sourcesContent":["function FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n return null;\n}\nvar Root = FocusGuards;\nexport {\n FocusGuards,\n Root,\n useFocusGuards\n};\n//# sourceMappingURL=FocusGuard.native.js.map\n"],"mappings":";AAAA,SAAS,YAAY,OAAO;CAC1B,eAAe;CACf,OAAO,MAAM;AACf;AACA,SAAS,iBAAiB;CACxB,OAAO;AACT;AACA,IAAI,OAAO"}
package/dist/esm/index.js CHANGED
@@ -1,2 +1 @@
1
- export * from "./FocusGuard.mjs";
2
- //# sourceMappingURL=index.js.map
1
+ export * from "./FocusGuard.mjs"
@@ -1,2 +1 @@
1
- export * from "./FocusGuard.mjs";
2
- //# sourceMappingURL=index.mjs.map
1
+ export * from "./FocusGuard.mjs"
@@ -1,2 +1 @@
1
- export * from "./FocusGuard.native.js";
2
- //# sourceMappingURL=index.native.js.map
1
+ export * from "./FocusGuard.native.js"
@@ -1,30 +1,32 @@
1
1
  import * as React from "react";
2
+
2
3
  let count = 0;
3
4
  function FocusGuards(props) {
4
- useFocusGuards();
5
- return props.children;
5
+ useFocusGuards();
6
+ return props.children;
6
7
  }
7
8
  function useFocusGuards() {
8
- React.useEffect(() => {
9
- const edgeGuards = document.querySelectorAll("[data-tamagui-focus-guard]");
10
- document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
11
- document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
12
- count++;
13
- return () => {
14
- if (count === 1) {
15
- document.querySelectorAll("[data-tamagui-focus-guard]").forEach(node => node.remove());
16
- }
17
- count--;
18
- };
19
- }, []);
9
+ React.useEffect(() => {
10
+ const edgeGuards = document.querySelectorAll("[data-tamagui-focus-guard]");
11
+ document.body.insertAdjacentElement("afterbegin", edgeGuards[0] ?? createFocusGuard());
12
+ document.body.insertAdjacentElement("beforeend", edgeGuards[1] ?? createFocusGuard());
13
+ count++;
14
+ return () => {
15
+ if (count === 1) {
16
+ document.querySelectorAll("[data-tamagui-focus-guard]").forEach((node) => node.remove());
17
+ }
18
+ count--;
19
+ };
20
+ }, []);
20
21
  }
21
22
  function createFocusGuard() {
22
- const element = document.createElement("span");
23
- element.setAttribute("data-tamagui-focus-guard", "");
24
- element.tabIndex = 0;
25
- element.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none";
26
- return element;
23
+ const element = document.createElement("span");
24
+ element.setAttribute("data-tamagui-focus-guard", "");
25
+ element.tabIndex = 0;
26
+ element.style.cssText = "outline: none; opacity: 0; position: fixed; pointer-events: none";
27
+ return element;
27
28
  }
28
29
  const Root = FocusGuards;
30
+
29
31
  export { FocusGuards, Root, useFocusGuards };
30
32
  //# sourceMappingURL=FocusGuard.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","count","FocusGuards","props","useFocusGuards","children","useEffect","edgeGuards","document","querySelectorAll","body","insertAdjacentElement","createFocusGuard","forEach","node","remove","element","createElement","setAttribute","tabIndex","style","cssText","Root"],"sources":["../../src/FocusGuard.tsx"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGvB,IAAIC,KAAA,GAAQ;AAEZ,SAASC,YAAYC,KAAA,EAAY;EAC/BC,cAAA,CAAe;EACf,OAAOD,KAAA,CAAME,QAAA;AACf;AAMA,SAASD,eAAA,EAAiB;EACxBJ,KAAA,CAAMM,SAAA,CAAU,MAAM;IACpB,MAAMC,UAAA,GAAaC,QAAA,CAASC,gBAAA,CAAiB,4BAA4B;IACzED,QAAA,CAASE,IAAA,CAAKC,qBAAA,CAAsB,cAAcJ,UAAA,CAAW,CAAC,KAAKK,gBAAA,CAAiB,CAAC;IACrFJ,QAAA,CAASE,IAAA,CAAKC,qBAAA,CAAsB,aAAaJ,UAAA,CAAW,CAAC,KAAKK,gBAAA,CAAiB,CAAC;IACpFX,KAAA;IAEA,OAAO,MAAM;MACX,IAAIA,KAAA,KAAU,GAAG;QACfO,QAAA,CACGC,gBAAA,CAAiB,4BAA4B,EAC7CI,OAAA,CAASC,IAAA,IAASA,IAAA,CAAKC,MAAA,CAAO,CAAC;MACpC;MACAd,KAAA;IACF;EACF,GAAG,EAAE;AACP;AAEA,SAASW,iBAAA,EAAmB;EAC1B,MAAMI,OAAA,GAAUR,QAAA,CAASS,aAAA,CAAc,MAAM;EAC7CD,OAAA,CAAQE,YAAA,CAAa,4BAA4B,EAAE;EACnDF,OAAA,CAAQG,QAAA,GAAW;EACnBH,OAAA,CAAQI,KAAA,CAAMC,OAAA,GACZ;EACF,OAAOL,OAAA;AACT;AAEA,MAAMM,IAAA,GAAOpB,WAAA","ignoreList":[]}
1
+ {"version":3,"file":"FocusGuard.js","names":[],"sources":["jsx/FocusGuard.js"],"sourcesContent":["import * as React from \"react\";\nlet count = 0;\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n React.useEffect(() => {\n const edgeGuards = document.querySelectorAll(\"[data-tamagui-focus-guard]\");\n document.body.insertAdjacentElement(\"afterbegin\", edgeGuards[0] ?? createFocusGuard());\n document.body.insertAdjacentElement(\"beforeend\", edgeGuards[1] ?? createFocusGuard());\n count++;\n return () => {\n if (count === 1) {\n document.querySelectorAll(\"[data-tamagui-focus-guard]\").forEach((node) => node.remove());\n }\n count--;\n };\n }, []);\n}\nfunction createFocusGuard() {\n const element = document.createElement(\"span\");\n element.setAttribute(\"data-tamagui-focus-guard\", \"\");\n element.tabIndex = 0;\n element.style.cssText = \"outline: none; opacity: 0; position: fixed; pointer-events: none\";\n return element;\n}\nconst Root = FocusGuards;\nexport {\n FocusGuards,\n Root,\n useFocusGuards\n};\n//# sourceMappingURL=FocusGuard.js.map\n"],"mappings":";;;AACA,IAAI,QAAQ;AACZ,SAAS,YAAY,OAAO;CAC1B,eAAe;CACf,OAAO,MAAM;AACf;AACA,SAAS,iBAAiB;CACxB,MAAM,gBAAgB;EACpB,MAAM,aAAa,SAAS,iBAAiB,4BAA4B;EACzE,SAAS,KAAK,sBAAsB,cAAc,WAAW,MAAM,iBAAiB,CAAC;EACrF,SAAS,KAAK,sBAAsB,aAAa,WAAW,MAAM,iBAAiB,CAAC;EACpF;EACA,aAAa;GACX,IAAI,UAAU,GAAG;IACf,SAAS,iBAAiB,4BAA4B,EAAE,SAAS,SAAS,KAAK,OAAO,CAAC;GACzF;GACA;EACF;CACF,GAAG,CAAC,CAAC;AACP;AACA,SAAS,mBAAmB;CAC1B,MAAM,UAAU,SAAS,cAAc,MAAM;CAC7C,QAAQ,aAAa,4BAA4B,EAAE;CACnD,QAAQ,WAAW;CACnB,QAAQ,MAAM,UAAU;CACxB,OAAO;AACT;AACA,MAAM,OAAO"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var FocusGuard_native_exports = {};
25
+ __export(FocusGuard_native_exports, {
26
+ FocusGuards: () => FocusGuards,
27
+ Root: () => Root,
28
+ useFocusGuards: () => useFocusGuards
29
+ });
30
+ module.exports = __toCommonJS(FocusGuard_native_exports);
31
+ function FocusGuards(props) {
32
+ useFocusGuards();
33
+ return props.children;
34
+ }
35
+ function useFocusGuards() {
36
+ return null;
37
+ }
38
+ var Root = FocusGuards;
@@ -1,40 +1,40 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
12
13
  };
13
14
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
21
22
  };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
24
  var FocusGuard_native_exports = {};
26
25
  __export(FocusGuard_native_exports, {
27
- FocusGuards: () => FocusGuards,
28
- Root: () => Root,
29
- useFocusGuards: () => useFocusGuards
26
+ FocusGuards: () => FocusGuards,
27
+ Root: () => Root,
28
+ useFocusGuards: () => useFocusGuards
30
29
  });
31
30
  module.exports = __toCommonJS(FocusGuard_native_exports);
32
31
  function FocusGuards(props) {
33
- useFocusGuards();
34
- return props.children;
32
+ useFocusGuards();
33
+ return props.children;
35
34
  }
36
35
  function useFocusGuards() {
37
- return null;
36
+ return null;
38
37
  }
39
38
  var Root = FocusGuards;
39
+
40
40
  //# sourceMappingURL=FocusGuard.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FocusGuard_native_exports","__export","FocusGuards","Root","useFocusGuards","module","exports","__toCommonJS","props","children"],"sources":["../../src/FocusGuard.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,WAAA,EAAAA,CAAA,KAAAA,WAAA;EAAAC,IAAA,EAAAA,CAAA,KAAAA,IAAA;EAAAC,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAP,yBAAA;AAAA,SAASE,YAAYM,KAAA,EAAO;EACxBJ,cAAA,CAAe;EACf,OAAOI,KAAA,CAAMC,QAAA;AACjB;AACA,SAASL,eAAA,EAAiB;EACtB,OAAO;AACX;AACA,IAAID,IAAA,GAAOD,WAAA","ignoreList":[]}
1
+ {"version":3,"file":"FocusGuard.native.js","names":[],"sources":["jsx/FocusGuard.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar FocusGuard_native_exports = {};\n__export(FocusGuard_native_exports, {\n FocusGuards: () => FocusGuards,\n Root: () => Root,\n useFocusGuards: () => useFocusGuards\n});\nmodule.exports = __toCommonJS(FocusGuard_native_exports);\nfunction FocusGuards(props) {\n useFocusGuards();\n return props.children;\n}\nfunction useFocusGuards() {\n return null;\n}\nvar Root = FocusGuards;\n//# sourceMappingURL=FocusGuard.native.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B;CAClC,mBAAmB;CACnB,YAAY;CACZ,sBAAsB;AACxB,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,SAAS,YAAY,OAAO;CAC1B,eAAe;CACf,OAAO,MAAM;AACf;AACA,SAAS,iBAAiB;CACxB,OAAO;AACT;AACA,IAAI,OAAO"}
package/dist/jsx/index.js CHANGED
@@ -1,2 +1 @@
1
- export * from "./FocusGuard.mjs";
2
- //# sourceMappingURL=index.js.map
1
+ export * from "./FocusGuard.mjs"
@@ -1,2 +1 @@
1
- export * from "./FocusGuard.mjs";
2
- //# sourceMappingURL=index.mjs.map
1
+ export * from "./FocusGuard.mjs"
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
16
+ };
17
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var index_exports = {};
20
+ module.exports = __toCommonJS(index_exports);
21
+ __reExport(index_exports, require("./FocusGuard.native.js"), module.exports);
@@ -1,23 +1,23 @@
1
1
  "use strict";
2
2
 
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from === "object" || typeof from === "function") {
9
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
- get: () => from[key],
11
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
- });
13
- }
14
- return to;
9
+ if (from && typeof from === "object" || typeof from === "function") {
10
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
11
+ get: () => from[key],
12
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
13
+ });
14
+ }
15
+ return to;
15
16
  };
16
17
  var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
19
  var index_exports = {};
21
20
  module.exports = __toCommonJS(index_exports);
22
21
  __reExport(index_exports, require("./FocusGuard.native.js"), module.exports);
22
+
23
23
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["jsx/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, \"default\"), secondTarget && __copyProps(secondTarget, mod, \"default\"));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\nmodule.exports = __toCommonJS(index_exports);\n__reExport(index_exports, require(\"./FocusGuard\"), module.exports);\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,cAAc,QAAQ,KAAK,kBAAkB,YAAY,QAAQ,KAAK,SAAS,GAAG,gBAAgB,YAAY,cAAc,KAAK,SAAS;AAC9I,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,OAAO,UAAU,aAAa,aAAa;AAC3C,WAAW,eAAe,QAAQ,wBAAc,GAAG,OAAO,OAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/focus-guard",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-beta.643.1",
4
4
  "source": "src/index.ts",
5
5
  "type": "module",
6
6
  "files": [
@@ -33,11 +33,11 @@
33
33
  "clean:build": "tamagui-build clean:build"
34
34
  },
35
35
  "dependencies": {
36
- "@tamagui/compose-refs": "2.7.7",
37
- "@tamagui/use-event": "2.7.7"
36
+ "@tamagui/compose-refs": "3.0.0-beta.643.1",
37
+ "@tamagui/use-event": "3.0.0-beta.643.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@tamagui/build": "2.7.7",
40
+ "@tamagui/build": "3.0.0-beta.643.1",
41
41
  "react": ">=19"
42
42
  },
43
43
  "peerDependencies": {
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["../../src/index.tsx"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}