@tamagui/focus-scope 2.7.7 → 3.0.0-beta.1093.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.
Files changed (69) hide show
  1. package/dist/cjs/FocusScope.cjs +345 -351
  2. package/dist/cjs/FocusScope.native.cjs +36 -0
  3. package/dist/cjs/FocusScope.native.js +20 -27
  4. package/dist/cjs/FocusScope.native.js.map +1 -1
  5. package/dist/cjs/FocusScopeController.cjs +47 -54
  6. package/dist/cjs/FocusScopeController.native.cjs +75 -0
  7. package/dist/cjs/FocusScopeController.native.js +49 -55
  8. package/dist/cjs/FocusScopeController.native.js.map +1 -1
  9. package/dist/cjs/index.cjs +9 -11
  10. package/dist/cjs/index.native.cjs +21 -0
  11. package/dist/cjs/index.native.js +9 -10
  12. package/dist/cjs/index.native.js.map +1 -1
  13. package/dist/cjs/types.cjs +9 -11
  14. package/dist/cjs/types.native.cjs +18 -0
  15. package/dist/cjs/types.native.js +9 -10
  16. package/dist/cjs/types.native.js.map +1 -1
  17. package/dist/esm/FocusScope.mjs +331 -328
  18. package/dist/esm/FocusScope.mjs.map +1 -1
  19. package/dist/esm/FocusScope.native.js +6 -3
  20. package/dist/esm/FocusScope.native.js.map +1 -1
  21. package/dist/esm/FocusScopeController.mjs +29 -27
  22. package/dist/esm/FocusScopeController.mjs.map +1 -1
  23. package/dist/esm/FocusScopeController.native.js +32 -30
  24. package/dist/esm/FocusScopeController.native.js.map +1 -1
  25. package/dist/esm/index.js +3 -3
  26. package/dist/esm/index.mjs +3 -3
  27. package/dist/esm/index.native.js +3 -3
  28. package/dist/esm/types.mjs +0 -2
  29. package/dist/esm/types.native.js +0 -2
  30. package/dist/jsx/FocusScope.mjs +331 -328
  31. package/dist/jsx/FocusScope.mjs.map +1 -1
  32. package/dist/jsx/FocusScope.native.cjs +36 -0
  33. package/dist/jsx/FocusScope.native.js +20 -27
  34. package/dist/jsx/FocusScope.native.js.map +1 -1
  35. package/dist/jsx/FocusScopeController.mjs +29 -27
  36. package/dist/jsx/FocusScopeController.mjs.map +1 -1
  37. package/dist/jsx/FocusScopeController.native.cjs +75 -0
  38. package/dist/jsx/FocusScopeController.native.js +49 -55
  39. package/dist/jsx/FocusScopeController.native.js.map +1 -1
  40. package/dist/jsx/index.js +3 -3
  41. package/dist/jsx/index.mjs +3 -3
  42. package/dist/jsx/index.native.cjs +21 -0
  43. package/dist/jsx/index.native.js +9 -10
  44. package/dist/jsx/index.native.js.map +1 -1
  45. package/dist/jsx/types.mjs +0 -2
  46. package/dist/jsx/types.native.cjs +18 -0
  47. package/dist/jsx/types.native.js +9 -10
  48. package/dist/jsx/types.native.js.map +1 -1
  49. package/package.json +11 -9
  50. package/src/FocusScope.native.tsx +2 -1
  51. package/src/FocusScope.tsx +62 -28
  52. package/src/FocusScopeController.tsx +3 -0
  53. package/src/types.tsx +16 -11
  54. package/types/FocusScope.d.ts +3 -4
  55. package/types/FocusScope.d.ts.map +1 -1
  56. package/types/FocusScope.native.d.ts +1 -2
  57. package/types/FocusScope.native.d.ts.map +1 -1
  58. package/types/FocusScopeController.d.ts +1 -1
  59. package/types/FocusScopeController.d.ts.map +1 -1
  60. package/types/types.d.ts +15 -9
  61. package/types/types.d.ts.map +1 -1
  62. package/dist/esm/index.js.map +0 -1
  63. package/dist/esm/index.mjs.map +0 -1
  64. package/dist/esm/index.native.js.map +0 -1
  65. package/dist/esm/types.mjs.map +0 -1
  66. package/dist/esm/types.native.js.map +0 -1
  67. package/dist/jsx/index.js.map +0 -1
  68. package/dist/jsx/index.mjs.map +0 -1
  69. package/dist/jsx/types.mjs.map +0 -1
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: () => from[key],
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
27
+ }) : target, mod));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var FocusScope_native_exports = {};
30
+ __export(FocusScope_native_exports, { FocusScope: () => FocusScope });
31
+ module.exports = __toCommonJS(FocusScope_native_exports);
32
+ var import_compose_refs = require("@tamagui/compose-refs");
33
+ var import_react = __toESM(require("react"), 1);
34
+ var FocusScope = (0, import_compose_refs.createRefComponent)(function(props, _ref) {
35
+ return props.children;
36
+ });
@@ -7,39 +7,32 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
14
  };
15
15
  var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: () => from[key],
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
23
  };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
32
27
  }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
29
  var FocusScope_native_exports = {};
37
- __export(FocusScope_native_exports, {
38
- FocusScope: () => FocusScope
39
- });
30
+ __export(FocusScope_native_exports, { FocusScope: () => FocusScope });
40
31
  module.exports = __toCommonJS(FocusScope_native_exports);
32
+ var import_compose_refs = require("@tamagui/compose-refs");
41
33
  var import_react = __toESM(require("react"), 1);
42
- var FocusScope = /* @__PURE__ */import_react.default.forwardRef(function (props, _ref) {
43
- return props.children;
34
+ var FocusScope = (0, import_compose_refs.createRefComponent)(function(props, _ref) {
35
+ return props.children;
44
36
  });
37
+
45
38
  //# sourceMappingURL=FocusScope.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["FocusScope_native_exports","__export","FocusScope","module","exports","__toCommonJS","import_react","__toESM","require","default","forwardRef","props","_ref","children"],"sources":["../../src/FocusScope.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,yBAAA;AAAAC,QAAA,CAAAD,yBAAA;EAAAE,UAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,yBAAA;AAAA,IAAAM,YAAA,GAAkBC,OAAA,CAAAC,OAAA;AACX,IAAIN,UAAA,GAA2B,eAAAI,YAAA,CAAAG,OAAA,CAAMC,UAAA,CAAW,UAASC,KAAA,EAAOC,IAAA,EAAM;EACzE,OAAOD,KAAA,CAAME,QAAA;AACjB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"FocusScope.native.js","names":[],"sources":["cjs/FocusScope.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar FocusScope_native_exports = {};\n__export(FocusScope_native_exports, {\n FocusScope: () => FocusScope\n});\nmodule.exports = __toCommonJS(FocusScope_native_exports);\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar FocusScope = (0, import_compose_refs.createRefComponent)(function(props, _ref) {\n return props.children;\n});\n//# sourceMappingURL=FocusScope.native.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,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,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,4BAA4B,CAAC;AACjC,SAAS,2BAA2B,EAClC,kBAAkB,WACpB,CAAC;AACD,OAAO,UAAU,aAAa,yBAAyB;AACvD,IAAI,sBAAsB,QAAQ,uBAAuB;AACzD,IAAI,eAAe,QAAQ,QAAQ,OAAO,GAAG,CAAC;AAC9C,IAAI,cAAc,GAAG,oBAAoB,mBAAkB,CAAE,SAAS,OAAO,MAAM;CACjF,OAAO,MAAM;AACf,CAAC"}
@@ -5,38 +5,31 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  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;
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;
21
21
  };
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
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
30
25
  }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
27
  var FocusScopeController_exports = {};
35
28
  __export(FocusScopeController_exports, {
36
- FocusScopeController: () => FocusScopeControllerComponent,
37
- FocusScopeControllerProvider: () => FocusScopeControllerProvider,
38
- createFocusScopeControllerScope: () => createFocusScopeControllerScope,
39
- useFocusScopeControllerContext: () => useFocusScopeControllerContext
29
+ FocusScopeController: () => FocusScopeControllerComponent,
30
+ FocusScopeControllerProvider: () => FocusScopeControllerProvider,
31
+ createFocusScopeControllerScope: () => createFocusScopeControllerScope,
32
+ useFocusScopeControllerContext: () => useFocusScopeControllerContext
40
33
  });
41
34
  module.exports = __toCommonJS(FocusScopeController_exports);
42
35
  var import_create_context = require("@tamagui/create-context");
@@ -47,32 +40,32 @@ const FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController";
47
40
  const [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME);
48
41
  const [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
49
42
  function FocusScopeController(props) {
50
- const {
51
- __scopeFocusScope,
52
- children,
53
- enabled,
54
- loop,
55
- trapped,
56
- onMountAutoFocus,
57
- onUnmountAutoFocus,
58
- forceUnmount,
59
- focusOnIdle
60
- } = props;
61
- const stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus);
62
- const stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus);
63
- const contextValue = React.useMemo(() => ({
64
- enabled,
65
- loop,
66
- trapped,
67
- onMountAutoFocus: stableOnMountAutoFocus,
68
- onUnmountAutoFocus: stableOnUnmountAutoFocus,
69
- forceUnmount,
70
- focusOnIdle
71
- }), [enabled, loop, trapped, stableOnMountAutoFocus, stableOnUnmountAutoFocus, forceUnmount, focusOnIdle]);
72
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(FocusScopeControllerProvider, {
73
- scope: __scopeFocusScope,
74
- ...contextValue,
75
- children
76
- });
43
+ const { __scopeFocusScope, children, enabled, loop, trapped, noFocus, onMountAutoFocus, onUnmountAutoFocus, forceUnmount, focusOnIdle } = props;
44
+ const stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus);
45
+ const stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus);
46
+ const contextValue = React.useMemo(() => ({
47
+ enabled,
48
+ loop,
49
+ trapped,
50
+ noFocus,
51
+ onMountAutoFocus: stableOnMountAutoFocus,
52
+ onUnmountAutoFocus: stableOnUnmountAutoFocus,
53
+ forceUnmount,
54
+ focusOnIdle
55
+ }), [
56
+ enabled,
57
+ loop,
58
+ trapped,
59
+ noFocus,
60
+ stableOnMountAutoFocus,
61
+ stableOnUnmountAutoFocus,
62
+ forceUnmount,
63
+ focusOnIdle
64
+ ]);
65
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScopeControllerProvider, {
66
+ scope: __scopeFocusScope,
67
+ ...contextValue,
68
+ children
69
+ });
77
70
  }
78
- const FocusScopeControllerComponent = FocusScopeController;
71
+ const FocusScopeControllerComponent = FocusScopeController;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __export = (target, all) => {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: () => from[key],
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
27
+ }) : target, mod));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var FocusScopeController_exports = {};
30
+ __export(FocusScopeController_exports, {
31
+ FocusScopeController: () => FocusScopeControllerComponent,
32
+ FocusScopeControllerProvider: () => FocusScopeControllerProvider,
33
+ createFocusScopeControllerScope: () => createFocusScopeControllerScope,
34
+ useFocusScopeControllerContext: () => useFocusScopeControllerContext
35
+ });
36
+ module.exports = __toCommonJS(FocusScopeController_exports);
37
+ var import_jsx_runtime = require("react/jsx-runtime");
38
+ var import_create_context = require("@tamagui/create-context");
39
+ var import_use_event = require("@tamagui/use-event");
40
+ var React = __toESM(require("react"), 1);
41
+ var FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController";
42
+ var [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME);
43
+ var [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
44
+ function FocusScopeController(props) {
45
+ var { __scopeFocusScope, children, enabled, loop, trapped, noFocus, onMountAutoFocus, onUnmountAutoFocus, forceUnmount, focusOnIdle } = props;
46
+ var stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus);
47
+ var stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus);
48
+ var contextValue = React.useMemo(function() {
49
+ return {
50
+ enabled,
51
+ loop,
52
+ trapped,
53
+ noFocus,
54
+ onMountAutoFocus: stableOnMountAutoFocus,
55
+ onUnmountAutoFocus: stableOnUnmountAutoFocus,
56
+ forceUnmount,
57
+ focusOnIdle
58
+ };
59
+ }, [
60
+ enabled,
61
+ loop,
62
+ trapped,
63
+ noFocus,
64
+ stableOnMountAutoFocus,
65
+ stableOnUnmountAutoFocus,
66
+ forceUnmount,
67
+ focusOnIdle
68
+ ]);
69
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScopeControllerProvider, {
70
+ scope: __scopeFocusScope,
71
+ ...contextValue,
72
+ children
73
+ });
74
+ }
75
+ var FocusScopeControllerComponent = FocusScopeController;
@@ -7,38 +7,31 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: true
13
- });
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
14
  };
15
15
  var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
18
+ get: () => from[key],
19
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
+ });
21
+ }
22
+ return to;
23
23
  };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
- // If the importer is in node compatibility mode or this is not an ESM
26
- // file that has been converted to a CommonJS file using a Babel-
27
- // compatible transform (i.e. "__esModule" has not been set), then set
28
- // "default" to the CommonJS "module.exports" for node compatibility.
29
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
- value: mod,
31
- enumerable: true
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
25
+ value: mod,
26
+ enumerable: true
32
27
  }) : target, mod));
33
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
- value: true
35
- }), mod);
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
36
29
  var FocusScopeController_exports = {};
37
30
  __export(FocusScopeController_exports, {
38
- FocusScopeController: () => FocusScopeControllerComponent,
39
- FocusScopeControllerProvider: () => FocusScopeControllerProvider,
40
- createFocusScopeControllerScope: () => createFocusScopeControllerScope,
41
- useFocusScopeControllerContext: () => useFocusScopeControllerContext
31
+ FocusScopeController: () => FocusScopeControllerComponent,
32
+ FocusScopeControllerProvider: () => FocusScopeControllerProvider,
33
+ createFocusScopeControllerScope: () => createFocusScopeControllerScope,
34
+ useFocusScopeControllerContext: () => useFocusScopeControllerContext
42
35
  });
43
36
  module.exports = __toCommonJS(FocusScopeController_exports);
44
37
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -49,35 +42,36 @@ var FOCUS_SCOPE_CONTROLLER_NAME = "FocusScopeController";
49
42
  var [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME);
50
43
  var [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);
51
44
  function FocusScopeController(props) {
52
- var {
53
- __scopeFocusScope,
54
- children,
55
- enabled,
56
- loop,
57
- trapped,
58
- onMountAutoFocus,
59
- onUnmountAutoFocus,
60
- forceUnmount,
61
- focusOnIdle
62
- } = props;
63
- var stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus);
64
- var stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus);
65
- var contextValue = React.useMemo(function () {
66
- return {
67
- enabled,
68
- loop,
69
- trapped,
70
- onMountAutoFocus: stableOnMountAutoFocus,
71
- onUnmountAutoFocus: stableOnUnmountAutoFocus,
72
- forceUnmount,
73
- focusOnIdle
74
- };
75
- }, [enabled, loop, trapped, stableOnMountAutoFocus, stableOnUnmountAutoFocus, forceUnmount, focusOnIdle]);
76
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(FocusScopeControllerProvider, {
77
- scope: __scopeFocusScope,
78
- ...contextValue,
79
- children
80
- });
45
+ var { __scopeFocusScope, children, enabled, loop, trapped, noFocus, onMountAutoFocus, onUnmountAutoFocus, forceUnmount, focusOnIdle } = props;
46
+ var stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus);
47
+ var stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus);
48
+ var contextValue = React.useMemo(function() {
49
+ return {
50
+ enabled,
51
+ loop,
52
+ trapped,
53
+ noFocus,
54
+ onMountAutoFocus: stableOnMountAutoFocus,
55
+ onUnmountAutoFocus: stableOnUnmountAutoFocus,
56
+ forceUnmount,
57
+ focusOnIdle
58
+ };
59
+ }, [
60
+ enabled,
61
+ loop,
62
+ trapped,
63
+ noFocus,
64
+ stableOnMountAutoFocus,
65
+ stableOnUnmountAutoFocus,
66
+ forceUnmount,
67
+ focusOnIdle
68
+ ]);
69
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScopeControllerProvider, {
70
+ scope: __scopeFocusScope,
71
+ ...contextValue,
72
+ children
73
+ });
81
74
  }
82
75
  var FocusScopeControllerComponent = FocusScopeController;
76
+
83
77
  //# sourceMappingURL=FocusScopeController.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","FocusScopeController_exports","__export","FocusScopeController","FocusScopeControllerComponent","FocusScopeControllerProvider","createFocusScopeControllerScope","useFocusScopeControllerContext","module","exports","import_jsx_runtime","require","import_create_context","import_use_event","React","__toESM","FOCUS_SCOPE_CONTROLLER_NAME","createFocusScopeControllerContext","createContextScope","props","__scopeFocusScope","children","enabled","loop","trapped","onMountAutoFocus","onUnmountAutoFocus","forceUnmount","focusOnIdle","stableOnMountAutoFocus","useEvent","stableOnUnmountAutoFocus","contextValue","useMemo","jsx","scope"],"sources":["../../src/FocusScopeController.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,4BAAA;AAAAC,QAAA,CAAAD,4BAAA;EAAAE,oBAAA,EAAAA,CAAA,KAAAC,6BAAA;EAAAC,4BAAA,EAAAA,CAAA,KAAAA,4BAAA;EAAAC,+BAAA,EAAAA,CAAA,KAAAA,+BAAA;EAAAC,8BAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAb,YAAmC,CAAAK,4BAAA;AACnC,IAAAS,kBAAA,GAAyBC,OAAA;AACzB,IAAAC,qBAAuB,GAAAD,OAAA;AA8DnB,IAAAE,gBAAA,GAAAF,OAAA;AA1DJ,IAAAG,KAAM,GAAAC,OAAA,CAAAJ,OAAA,SAA8B;AAEpC,IAAAK,2BAAO,yBAAmC;AAK1C,KAAAC,iCAAqC,EAAAX,+BACnC,QAAAM,qBAAA,CAAAM,kBAAA,EAAAF,2BAAA;AAAA,IACE,CAAAX,4BAAA,EAAAE,8BAAA,IAAAU,iCAAA,CAAAD,2BAAA;AACF,SAAAb,qBAAAgB,KAAA;EAUF;IAAAC,iBAAS;IAAAC,QAAqB;IAA+CC,OAAA;IAAAC,IAAA;IAAAC,OAAA;IAAAC,gBAAA;IAAAC,kBAAA;IAAAC,YAAA;IAAAC;EAAA,IAAAT,KAAA;EAC3E,IAAAU,sBAAM,OAAAhB,gBAAA,CAAAiB,QAAA,EAAAL,gBAAA;EAAA,IACJM,wBAAA,OAAAlB,gBAAA,CAAAiB,QAAA,EAAAJ,kBAAA;EAAA,IACAM,YAAA,GAAAlB,KAAA,CAAAmB,OAAA;IACA;MACAX,OAAA;MACAC,IAAA;MACAC,OAAA;MACAC,gBAAA,EAAAI,sBAAA;MACAH,kBAAA,EAAAK,wBAAA;MACAJ,YAAA;MACEC;IAEJ;EACA,IAEAN,OAAM,EACJC,IAAA,EAAOC,OACL,EAAAK,sBACA,EAAAE,wBACA,EAAAJ,YACA,EAAkBC,WAClB,CAAoB;EACpB,OACA,mBAAAlB,kBAAA,CAAAwB,GAAA,EAAA7B,4BAAA;IACF8B,KAAA,EAAAf,iBAAA;IACA,GAAAY,YAAA;IAAAX;EACE;AACA;AACA,IAAAjB,6BACA,GAAAD,oBAAA","ignoreList":[]}
1
+ {"version":3,"file":"FocusScopeController.native.js","names":[],"sources":["cjs/FocusScopeController.native.js"],"sourcesContent":["\"use strict\";\nvar __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\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 __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n // If the importer is in node compatibility mode or this is not an ESM\n // file that has been converted to a CommonJS file using a Babel-\n // compatible transform (i.e. \"__esModule\" has not been set), then set\n // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar FocusScopeController_exports = {};\n__export(FocusScopeController_exports, {\n FocusScopeController: () => FocusScopeControllerComponent,\n FocusScopeControllerProvider: () => FocusScopeControllerProvider,\n createFocusScopeControllerScope: () => createFocusScopeControllerScope,\n useFocusScopeControllerContext: () => useFocusScopeControllerContext\n});\nmodule.exports = __toCommonJS(FocusScopeController_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_create_context = require(\"@tamagui/create-context\");\nvar import_use_event = require(\"@tamagui/use-event\");\nvar React = __toESM(require(\"react\"), 1);\nvar FOCUS_SCOPE_CONTROLLER_NAME = \"FocusScopeController\";\nvar [createFocusScopeControllerContext, createFocusScopeControllerScope] = (0, import_create_context.createContextScope)(FOCUS_SCOPE_CONTROLLER_NAME);\nvar [FocusScopeControllerProvider, useFocusScopeControllerContext] = createFocusScopeControllerContext(FOCUS_SCOPE_CONTROLLER_NAME);\nfunction FocusScopeController(props) {\n var { __scopeFocusScope, children, enabled, loop, trapped, noFocus, onMountAutoFocus, onUnmountAutoFocus, forceUnmount, focusOnIdle } = props;\n var stableOnMountAutoFocus = (0, import_use_event.useEvent)(onMountAutoFocus);\n var stableOnUnmountAutoFocus = (0, import_use_event.useEvent)(onUnmountAutoFocus);\n var contextValue = React.useMemo(function() {\n return {\n enabled,\n loop,\n trapped,\n noFocus,\n onMountAutoFocus: stableOnMountAutoFocus,\n onUnmountAutoFocus: stableOnUnmountAutoFocus,\n forceUnmount,\n focusOnIdle\n };\n }, [\n enabled,\n loop,\n trapped,\n noFocus,\n stableOnMountAutoFocus,\n stableOnUnmountAutoFocus,\n forceUnmount,\n focusOnIdle\n ]);\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FocusScopeControllerProvider, {\n scope: __scopeFocusScope,\n ...contextValue,\n children\n });\n}\nvar FocusScopeControllerComponent = FocusScopeController;\n//# sourceMappingURL=FocusScopeController.js.map\n"],"mappings":";;;AACA,IAAI,WAAW,OAAO;AACtB,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO;AAC1B,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,WAAW,KAAK,YAAY,YAAY,SAAS,OAAO,OAAO,SAAS,aAAa,GAAG,CAAC,IAAI,CAAC,GAAG,YAKnG,cAAc,CAAC,OAAO,CAAC,IAAI,aAAa,UAAU,QAAQ,WAAW;CAAE,OAAO;CAAK,YAAY;AAAK,CAAC,IAAI,QACzG,GACF;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,+BAA+B,CAAC;AACpC,SAAS,8BAA8B;CACrC,4BAA4B;CAC5B,oCAAoC;CACpC,uCAAuC;CACvC,sCAAsC;AACxC,CAAC;AACD,OAAO,UAAU,aAAa,4BAA4B;AAC1D,IAAI,qBAAqB,QAAQ,mBAAmB;AACpD,IAAI,wBAAwB,QAAQ,yBAAyB;AAC7D,IAAI,mBAAmB,QAAQ,oBAAoB;AACnD,IAAI,QAAQ,QAAQ,QAAQ,OAAO,GAAG,CAAC;AACvC,IAAI,8BAA8B;AAClC,IAAI,CAAC,mCAAmC,oCAAoC,GAAG,sBAAsB,mBAAkB,CAAE,2BAA2B;AACpJ,IAAI,CAAC,8BAA8B,kCAAkC,kCAAkC,2BAA2B;AAClI,SAAS,qBAAqB,OAAO;CACnC,IAAI,EAAE,mBAAmB,UAAU,SAAS,MAAM,SAAS,SAAS,kBAAkB,oBAAoB,cAAc,gBAAgB;CACxI,IAAI,0BAA0B,GAAG,iBAAiB,SAAQ,CAAE,gBAAgB;CAC5E,IAAI,4BAA4B,GAAG,iBAAiB,SAAQ,CAAE,kBAAkB;CAChF,IAAI,eAAe,MAAM,QAAQ,WAAW;EAC1C,OAAO;GACL;GACA;GACA;GACA;GACA,kBAAkB;GAClB,oBAAoB;GACpB;GACA;EACF;CACF,GAAG;EACD;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF,CAAC;CACD,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,8BAA8B;EAC/E,OAAO;EACP,GAAG;EACH;CACF,CAAC;AACH;AACA,IAAI,gCAAgC"}
@@ -3,19 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  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;
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;
13
13
  };
14
14
  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);
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
16
  var index_exports = {};
19
17
  module.exports = __toCommonJS(index_exports);
20
18
  __reExport(index_exports, require("./FocusScope.cjs"), module.exports);
21
- __reExport(index_exports, require("./FocusScopeController.cjs"), module.exports);
19
+ __reExport(index_exports, require("./FocusScopeController.cjs"), module.exports);
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ 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;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var index_exports = {};
19
+ module.exports = __toCommonJS(index_exports);
20
+ __reExport(index_exports, require("./FocusScope.native.js"), module.exports);
21
+ __reExport(index_exports, require("./FocusScopeController.native.js"), module.exports);
@@ -5,20 +5,19 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  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;
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;
15
15
  };
16
16
  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);
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
18
  var index_exports = {};
21
19
  module.exports = __toCommonJS(index_exports);
22
20
  __reExport(index_exports, require("./FocusScope.native.js"), module.exports);
23
21
  __reExport(index_exports, require("./FocusScopeController.native.js"), module.exports);
22
+
24
23
  //# sourceMappingURL=index.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"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;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,4BAAAH,MAAA,CAAAC,OADd","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(\"./FocusScope\"), module.exports);\n__reExport(index_exports, require(\"./FocusScopeController\"), 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;AACjE,WAAW,eAAe,QAAQ,kCAAwB,GAAG,OAAO,OAAO"}
@@ -3,16 +3,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  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;
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;
13
13
  };
14
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
- value: true
16
- }), mod);
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
15
  var types_exports = {};
18
- module.exports = __toCommonJS(types_exports);
16
+ module.exports = __toCommonJS(types_exports);
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ 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;
15
+ };
16
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
17
+ var types_exports = {};
18
+ module.exports = __toCommonJS(types_exports);
@@ -5,17 +5,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  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;
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;
15
15
  };
16
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
17
- value: true
18
- }), mod);
16
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
17
  var types_exports = {};
20
18
  module.exports = __toCommonJS(types_exports);
19
+
21
20
  //# sourceMappingURL=types.native.js.map