@tamagui/focusable 3.0.0-beta.669.1 → 3.0.0-beta.728.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,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"focusable.native.js","names":[],"sources":["cjs/focusable.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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar focusable_exports = {};\nmodule.exports = __toCommonJS(focusable_exports);\n//# sourceMappingURL=focusable.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,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,OAAO,UAAU,aAAa,iBAAiB"}
1
+ {"version":3,"file":"focusable.native.js","names":[],"sources":["cjs/focusable.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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar focusable_exports = {};\nmodule.exports = __toCommonJS(focusable_exports);\n//# sourceMappingURL=focusable.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,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,OAAO,UAAU,aAAa,iBAAiB"}
@@ -1,4 +1,3 @@
1
-
2
1
  var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1 +1 @@
1
- {"version":3,"file":"focusableInputHOC.native.js","names":[],"sources":["cjs/focusableInputHOC.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 focusableInputHOC_exports = {};\n__export(focusableInputHOC_exports, {\n useFocusable: () => useFocusable\n});\nmodule.exports = __toCommonJS(focusableInputHOC_exports);\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_web = require(\"@tamagui/web\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_registerFocusable = require(\"./registerFocusable\");\nfunction useFocusable(param) {\n var { isInput, props, ref } = param;\n var { id, onChangeText, value, defaultValue } = props;\n var inputValue = import_react.default.useRef(value || defaultValue || \"\");\n var unregisterFocusable = import_react.default.useRef(void 0);\n var focusAndSelect = import_react.default.useCallback(function(input) {\n input.focus();\n if (input.setSelection && typeof inputValue.current === \"string\") {\n input.setSelection(0, inputValue.current.length);\n }\n }, []);\n var registerFocusableHandler = import_react.default.useCallback(function(input) {\n var _unregisterFocusable_current;\n if (!id || !input) return;\n (_unregisterFocusable_current = unregisterFocusable.current) === null || _unregisterFocusable_current === void 0 ? void 0 : _unregisterFocusable_current.call(unregisterFocusable);\n unregisterFocusable.current = (0, import_registerFocusable.registerFocusable)(id, {\n focus: input.focus,\n ...isInput && {\n focusAndSelect: function() {\n return focusAndSelect(input);\n }\n }\n });\n }, [\n id,\n isInput,\n focusAndSelect\n ]);\n var inputRef = import_react.default.useCallback(function(input) {\n if (input) {\n registerFocusableHandler(input);\n }\n }, [\n registerFocusableHandler\n ]);\n var handleChangeText = (0, import_web.useEvent)(function(value2) {\n inputValue.current = value2;\n onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(value2);\n });\n import_react.default.useEffect(function() {\n return function() {\n var _unregisterFocusable_current;\n (_unregisterFocusable_current = unregisterFocusable.current) === null || _unregisterFocusable_current === void 0 ? void 0 : _unregisterFocusable_current.call(unregisterFocusable);\n };\n }, []);\n return {\n ref: import_react.default.useMemo(function() {\n return (0, import_compose_refs.composeRefs)(ref, inputRef);\n }, [\n ref,\n inputRef\n ]),\n onChangeText: handleChangeText\n };\n}\n//# sourceMappingURL=focusableInputHOC.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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G,WAAW,UAAU,SAAS,QAAQ;EAC/D,WAAW,UAAU;EACrB,iBAAiB,QAAQ,iBAAiB,KAAK,IAAI,KAAK,IAAI,aAAa,MAAM;CACjF,CAAC;CACD,aAAa,QAAQ,UAAU,WAAW;EACxC,OAAO,WAAW;GAChB,IAAI;GACJ,CAAC,+BAA+B,oBAAoB,aAAa,QAAQ,iCAAiC,KAAK,IAAI,KAAK,IAAI,6BAA6B,KAAK,mBAAmB;EACnL;CACF,GAAG,CAAC,CAAC;CACL,OAAO;EACL,KAAK,aAAa,QAAQ,QAAQ,WAAW;GAC3C,QAAQ,GAAG,oBAAoB,aAAa,KAAK,QAAQ;EAC3D,GAAG,CACD,KACA,QACF,CAAC;EACD,cAAc;CAChB;AACF"}
1
+ {"version":3,"file":"focusableInputHOC.native.js","names":[],"sources":["cjs/focusableInputHOC.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 focusableInputHOC_exports = {};\n__export(focusableInputHOC_exports, {\n useFocusable: () => useFocusable\n});\nmodule.exports = __toCommonJS(focusableInputHOC_exports);\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_web = require(\"@tamagui/web\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_registerFocusable = require(\"./registerFocusable\");\nfunction useFocusable(param) {\n var { isInput, props, ref } = param;\n var { id, onChangeText, value, defaultValue } = props;\n var inputValue = import_react.default.useRef(value || defaultValue || \"\");\n var unregisterFocusable = import_react.default.useRef(void 0);\n var focusAndSelect = import_react.default.useCallback(function(input) {\n input.focus();\n if (input.setSelection && typeof inputValue.current === \"string\") {\n input.setSelection(0, inputValue.current.length);\n }\n }, []);\n var registerFocusableHandler = import_react.default.useCallback(function(input) {\n var _unregisterFocusable_current;\n if (!id || !input) return;\n (_unregisterFocusable_current = unregisterFocusable.current) === null || _unregisterFocusable_current === void 0 ? void 0 : _unregisterFocusable_current.call(unregisterFocusable);\n unregisterFocusable.current = (0, import_registerFocusable.registerFocusable)(id, {\n focus: input.focus,\n ...isInput && {\n focusAndSelect: function() {\n return focusAndSelect(input);\n }\n }\n });\n }, [\n id,\n isInput,\n focusAndSelect\n ]);\n var inputRef = import_react.default.useCallback(function(input) {\n if (input) {\n registerFocusableHandler(input);\n }\n }, [\n registerFocusableHandler\n ]);\n var handleChangeText = (0, import_web.useEvent)(function(value2) {\n inputValue.current = value2;\n onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(value2);\n });\n import_react.default.useEffect(function() {\n return function() {\n var _unregisterFocusable_current;\n (_unregisterFocusable_current = unregisterFocusable.current) === null || _unregisterFocusable_current === void 0 ? void 0 : _unregisterFocusable_current.call(unregisterFocusable);\n };\n }, []);\n return {\n ref: import_react.default.useMemo(function() {\n return (0, import_compose_refs.composeRefs)(ref, inputRef);\n }, [\n ref,\n input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AI,6BAA6B,KAAK,mBAAmB;EACnL;CACF,GAAG,CAAC,CAAC;CACL,OAAO;EACL,KAAK,aAAa,QAAQ,QAAQ,WAAW;GAC3C,QAAQ,GAAG,oBAAoB,YAAW,CAAE,KAAK,QAAQ;EAC3D,GAAG,CACD,KACA,QACF,CAAC;EACD,cAAc;CAChB;AACF"}
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
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(\"./registerFocusable\"), module.exports);\n__reExport(index_exports, require(\"./focusableInputHOC\"), module.exports);\n__reExport(index_exports, require(\"./focusable\"), 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,+BAAqB,GAAG,OAAO,OAAO;AACxE,WAAW,eAAe,QAAQ,+BAAqB,GAAG,OAAO,OAAO;AACxE,WAAW,eAAe,QAAQ,uBAAa,GAAG,OAAO,OAAO"}
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(\"./registerFocusable\"), module.exports);\n__reExport(index_exports, require(\"./focusableInputHOC\"), module.exports);\n__reExport(index_exports, require(\"./focusable\"), 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,+BAAqB,GAAG,OAAO,OAAO;AACxE,WAAW,eAAe,QAAQ,+BAAqB,GAAG,OAAO,OAAO;AACxE,WAAW,eAAe,QAAQ,uBAAa,GAAG,OAAO,OAAO"}
@@ -1,4 +1,3 @@
1
-
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"registerFocusable.native.js","names":[],"sources":["cjs/registerFocusable.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 registerFocusable_native_exports = {};\n__export(registerFocusable_native_exports, {\n focusFocusable: () => focusFocusable,\n registerFocusable: () => registerFocusable,\n unregisterFocusable: () => unregisterFocusable\n});\nmodule.exports = __toCommonJS(registerFocusable_native_exports);\nvar InputsMap = /* @__PURE__ */ new Map();\nvar registerFocusable = function(id, input) {\n if (process.env.NODE_ENV === \"development\") {\n if (InputsMap.has(id)) {\n console.warn(`Warning, duplicate ID for input: ${id}`);\n }\n }\n InputsMap.set(id, input);\n return function() {\n InputsMap.delete(id);\n };\n};\nvar unregisterFocusable = function(id) {\n InputsMap.delete(id);\n};\nvar focusFocusable = function(id) {\n var select = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var input = InputsMap.get(id);\n if (!input) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"No input found for id\", id);\n }\n return;\n }\n if (select || !input.focusAndSelect) {\n input.focus();\n } else {\n input.focusAndSelect();\n }\n};\n//# sourceMappingURL=registerFocusable.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,mCAAmC,CAAC;AACxC,SAAS,kCAAkC;CACzC,sBAAsB;CACtB,yBAAyB;CACzB,2BAA2B;AAC7B,CAAC;AACD,OAAO,UAAU,aAAa,gCAAgC;AAC9D,IAAI,4BAA4B,IAAI,IAAI;AACxC,IAAI,oBAAoB,SAAS,IAAI,OAAO;CAC1C,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI,UAAU,IAAI,EAAE,GAAG;GACrB,QAAQ,KAAK,oCAAoC,IAAI;EACvD;CACF;CACA,UAAU,IAAI,IAAI,KAAK;CACvB,OAAO,WAAW;EAChB,UAAU,OAAO,EAAE;CACrB;AACF;AACA,IAAI,sBAAsB,SAAS,IAAI;CACrC,UAAU,OAAO,EAAE;AACrB;AACA,IAAI,iBAAiB,SAAS,IAAI;CAChC,IAAI,SAAS,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC9E,IAAI,QAAQ,UAAU,IAAI,EAAE;CAC5B,IAAI,CAAC,OAAO;EACV,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,yBAAyB,EAAE;EAC1C;EACA;CACF;CACA,IAAI,UAAU,CAAC,MAAM,gBAAgB;EACnC,MAAM,MAAM;CACd,OAAO;EACL,MAAM,eAAe;CACvB;AACF"}
1
+ {"version":3,"file":"registerFocusable.native.js","names":[],"sources":["cjs/registerFocusable.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 registerFocusable_native_exports = {};\n__export(registerFocusable_native_exports, {\n focusFocusable: () => focusFocusable,\n registerFocusable: () => registerFocusable,\n unregisterFocusable: () => unregisterFocusable\n});\nmodule.exports = __toCommonJS(registerFocusable_native_exports);\nvar InputsMap = /* @__PURE__ */ new Map();\nvar registerFocusable = function(id, input) {\n if (process.env.NODE_ENV === \"development\") {\n if (InputsMap.has(id)) {\n console.warn(`Warning, duplicate ID for input: ${id}`);\n }\n }\n InputsMap.set(id, input);\n return function() {\n InputsMap.delete(id);\n };\n};\nvar unregisterFocusable = function(id) {\n InputsMap.delete(id);\n};\nvar focusFocusable = function(id) {\n var select = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var input = InputsMap.get(id);\n if (!input) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"No input found for id\", id);\n }\n return;\n }\n if (select || !input.focusAndSelect) {\n input.focus();\n } else {\n input.focusAndSelect();\n }\n};\n//# sourceMappingURL=registerFocusable.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,mCAAmC,CAAC;AACxC,SAAS,kCAAkC;CACzC,sBAAsB;CACtB,yBAAyB;CACzB,2BAA2B;AAC7B,CAAC;AACD,OAAO,UAAU,aAAa,gCAAgC;AAC9D,IAAI,4BAA4B,IAAI,IAAI;AACxC,IAAI,oBAAoB,SAAS,IAAI,OAAO;CAC1C,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI,UAAU,IAAI,EAAE,GAAG;GACrB,QAAQ,KAAK,oCAAoC,IAAI;EACvD;CACF;CACA,UAAU,IAAI,IAAI,KAAK;CACvB,OAAO,WAAW;EAChB,UAAU,OAAO,EAAE;CACrB;AACF;AACA,IAAI,sBAAsB,SAAS,IAAI;CACrC,UAAU,OAAO,EAAE;AACrB;AACA,IAAI,iBAAiB,SAAS,IAAI;CAChC,IAAI,SAAS,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC9E,IAAI,QAAQ,UAAU,IAAI,EAAE;CAC5B,IAAI,CAAC,OAAO;EACV,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,yBAAyB,EAAE;EAC1C;EACA;CACF;CACA,IAAI,UAAU,CAAC,MAAM,gBAAgB;EACnC,MAAM,MAAM;CACd,OAAO;EACL,MAAM,eAAe;CACvB;AACF"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"focusable.native.js","names":[],"sources":["jsx/focusable.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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar focusable_exports = {};\nmodule.exports = __toCommonJS(focusable_exports);\n//# sourceMappingURL=focusable.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,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,OAAO,UAAU,aAAa,iBAAiB"}
1
+ {"version":3,"file":"focusable.native.js","names":[],"sources":["jsx/focusable.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 __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar focusable_exports = {};\nmodule.exports = __toCommonJS(focusable_exports);\n//# sourceMappingURL=focusable.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,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,oBAAoB,CAAC;AACzB,OAAO,UAAU,aAAa,iBAAiB"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
6
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1 +1 @@
1
- {"version":3,"file":"focusableInputHOC.native.js","names":[],"sources":["jsx/focusableInputHOC.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 focusableInputHOC_exports = {};\n__export(focusableInputHOC_exports, {\n useFocusable: () => useFocusable\n});\nmodule.exports = __toCommonJS(focusableInputHOC_exports);\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_web = require(\"@tamagui/web\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_registerFocusable = require(\"./registerFocusable\");\nfunction useFocusable(param) {\n var { isInput, props, ref } = param;\n var { id, onChangeText, value, defaultValue } = props;\n var inputValue = import_react.default.useRef(value || defaultValue || \"\");\n var unregisterFocusable = import_react.default.useRef(void 0);\n var focusAndSelect = import_react.default.useCallback(function(input) {\n input.focus();\n if (input.setSelection && typeof inputValue.current === \"string\") {\n input.setSelection(0, inputValue.current.length);\n }\n }, []);\n var registerFocusableHandler = import_react.default.useCallback(function(input) {\n var _unregisterFocusable_current;\n if (!id || !input) return;\n (_unregisterFocusable_current = unregisterFocusable.current) === null || _unregisterFocusable_current === void 0 ? void 0 : _unregisterFocusable_current.call(unregisterFocusable);\n unregisterFocusable.current = (0, import_registerFocusable.registerFocusable)(id, {\n focus: input.focus,\n ...isInput && {\n focusAndSelect: function() {\n return focusAndSelect(input);\n }\n }\n });\n }, [\n id,\n isInput,\n focusAndSelect\n ]);\n var inputRef = import_react.default.useCallback(function(input) {\n if (input) {\n registerFocusableHandler(input);\n }\n }, [\n registerFocusableHandler\n ]);\n var handleChangeText = (0, import_web.useEvent)(function(value2) {\n inputValue.current = value2;\n onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(value2);\n });\n import_react.default.useEffect(function() {\n return function() {\n var _unregisterFocusable_current;\n (_unregisterFocusable_current = unregisterFocusable.current) === null || _unregisterFocusable_current === void 0 ? void 0 : _unregisterFocusable_current.call(unregisterFocusable);\n };\n }, []);\n return {\n ref: import_react.default.useMemo(function() {\n return (0, import_compose_refs.composeRefs)(ref, inputRef);\n }, [\n ref,\n inputRef\n ]),\n onChangeText: handleChangeText\n };\n}\n//# sourceMappingURL=focusableInputHOC.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,IA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OAAO;EAC9E,IAAI;EACJ,IAAI,CAAC,MAAM,CAAC,OAAO;EACnB,CAAC,+BAA+B,oBAAoB,aAAa,QAAQ,iCAAiC,KAAK,IAAI,KAAK,IAAI,6BAA6B,KAAK,mBAAmB;EACjL,oBAAoB,WAAW,GAAG,yBAAyB,mBAAmB,IAAI;GAChF,OAAO,MAAM;GACb,GAAG,WAAW,EACZ,gBAAgB,WAAW;IACzB,OAAO,eAAe,KAAK;GAC7B,EACF;EACF,CAAC;CACH,GAAG;EACD;EACA;EACA;CACF,CAAC;CACD,IAAI,WAAW,aAAa,QAAQ,YAAY,SAAS,OAAO;EAC9D,IAAI,OAAO;GACT,yBAAyB,KAAK;EAChC;CACF,GAAG,CACD,wBACF,CAAC;CACD,IAAI,oBAAoB,GAAG,WAAW,UAAU,SAAS,QAAQ;EAC/D,WAAW,UAAU;EACrB,iBAAiB,QAAQ,iBAAiB,KAAK,IAAI,KAAK,IAAI,aAAa,MAAM;CACjF,CAAC;CACD,aAAa,QAAQ,UAAU,WAAW;EACxC,OAAO,WAAW;GAChB,IAAI;GACJ,CAAC,+BAA+B,oBAAoB,aAAa,QAAQ,iCAAiC,KAAK,IAAI,KAAK,IAAI,6BAA6B,KAAK,mBAAmB;EACnL;CACF,GAAG,CAAC,CAAC;CACL,OAAO;EACL,KAAK,aAAa,QAAQ,QAAQ,WAAW;GAC3C,QAAQ,GAAG,oBAAoB,aAAa,KAAK,QAAQ;EAC3D,GAAG,CACD,KACA,QACF,CAAC;EACD,cAAc;CAChB;AACF"}
1
+ {"version":3,"file":"focusableInputHOC.native.js","names":[],"sources":["jsx/focusableInputHOC.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 focusableInputHOC_exports = {};\n__export(focusableInputHOC_exports, {\n useFocusable: () => useFocusable\n});\nmodule.exports = __toCommonJS(focusableInputHOC_exports);\nvar import_compose_refs = require(\"@tamagui/compose-refs\");\nvar import_web = require(\"@tamagui/web\");\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_registerFocusable = require(\"./registerFocusable\");\nfunction useFocusable(param) {\n var { isInput, props, ref } = param;\n var { id, onChangeText, value, defaultValue } = props;\n var inputValue = import_react.default.useRef(value || defaultValue || \"\");\n var unregisterFocusable = import_react.default.useRef(void 0);\n var focusAndSelect = import_react.default.useCallback(function(input) {\n input.focus();\n if (input.setSelection && typeof inputValue.current === \"string\") {\n input.setSelection(0, inputValue.current.length);\n }\n }, []);\n var registerFocusableHandler = import_react.default.useCallback(function(input) {\n var _unregisterFocusable_current;\n if (!id || !input) return;\n (_unregisterFocusable_current = unregisterFocusable.current) === null || _unregisterFocusable_current === void 0 ? void 0 : _unregisterFocusable_current.call(unregisterFocusable);\n unregisterFocusable.current = (0, import_registerFocusable.registerFocusable)(id, {\n focus: input.focus,\n ...isInput && {\n focusAndSelect: function() {\n return focusAndSelect(input);\n }\n }\n });\n }, [\n id,\n isInput,\n focusAndSelect\n ]);\n var inputRef = import_react.default.useCallback(function(input) {\n if (input) {\n registerFocusableHandler(input);\n }\n }, [\n registerFocusableHandler\n ]);\n var handleChangeText = (0, import_web.useEvent)(function(value2) {\n inputValue.current = value2;\n onChangeText === null || onChangeText === void 0 ? void 0 : onChangeText(value2);\n });\n import_react.default.useEffect(function() {\n return function() {\n var _unregisterFocusable_current;\n (_unregisterFocusable_current = unregisterFocusable.current) === null || _unregisterFocusable_current === void 0 ? void 0 : _unregisterFocusable_current.call(unregisterFocusable);\n };\n }, []);\n return {\n ref: import_react.default.useMemo(function() {\n return (0, import_compose_refs.composeRefs)(ref, inputRef);\n }, [\n ref,\n inputRef\n ]),\n onChangeText: handleChangeText\n };\n}\n//# sourceMappingURL=focusableInputHOC.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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OAAO,eAAe,KAAK;GAC7B,EACF;EACF,CAAC;CACH,GAAG;EACD;EACA;EACA;CACF,CAAC;CACD,IAAI,WAAW,aAAa,QAAQ,YAAY,SAAS,OAAO;EAC9D,IAAI,OAAO;GACT,yBAAyB,KAAK;EAChC;CACF,GAAG,CACD,wBACF,CAAC;CACD,IAAI,oBAAoB,GAAG,WAAW,SAAQ,CAAE,SAAS,QAAQ;EAC/D,WAAW,UAAU;EACrB,iBAAiB,QAAQ,iBAAiB,KAAK,IAAI,KAAK,IAAI,aAAa,MAAM;CACjF,CAAC;CACD,aAAa,QAAQ,UAAU,WAAW;EACxC,OAAO,WAAW;GAChB,IAAI;GACJ,CAAC,+BAA+B,oBAAoB,aAAa,QAAQ,iCAAiC,KAAK,IAAI,KAAK,IAAI,6BAA6B,KAAK,mBAAmB;EACnL;CACF,GAAG,CAAC,CAAC;CACL,OAAO;EACL,KAAK,aAAa,QAAQ,QAAQ,WAAW;GAC3C,QAAQ,GAAG,oBAAoB,YAAW,CAAE,KAAK,QAAQ;EAC3D,GAAG,CACD,KACA,QACF,CAAC;EACD,cAAc;CAChB;AACF"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
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(\"./registerFocusable\"), module.exports);\n__reExport(index_exports, require(\"./focusableInputHOC\"), module.exports);\n__reExport(index_exports, require(\"./focusable\"), 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,+BAAqB,GAAG,OAAO,OAAO;AACxE,WAAW,eAAe,QAAQ,+BAAqB,GAAG,OAAO,OAAO;AACxE,WAAW,eAAe,QAAQ,uBAAa,GAAG,OAAO,OAAO"}
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(\"./registerFocusable\"), module.exports);\n__reExport(index_exports, require(\"./focusableInputHOC\"), module.exports);\n__reExport(index_exports, require(\"./focusable\"), 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,+BAAqB,GAAG,OAAO,OAAO;AACxE,WAAW,eAAe,QAAQ,+BAAqB,GAAG,OAAO,OAAO;AACxE,WAAW,eAAe,QAAQ,uBAAa,GAAG,OAAO,OAAO"}
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
 
3
-
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"registerFocusable.native.js","names":[],"sources":["jsx/registerFocusable.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 registerFocusable_native_exports = {};\n__export(registerFocusable_native_exports, {\n focusFocusable: () => focusFocusable,\n registerFocusable: () => registerFocusable,\n unregisterFocusable: () => unregisterFocusable\n});\nmodule.exports = __toCommonJS(registerFocusable_native_exports);\nvar InputsMap = /* @__PURE__ */ new Map();\nvar registerFocusable = function(id, input) {\n if (process.env.NODE_ENV === \"development\") {\n if (InputsMap.has(id)) {\n console.warn(`Warning, duplicate ID for input: ${id}`);\n }\n }\n InputsMap.set(id, input);\n return function() {\n InputsMap.delete(id);\n };\n};\nvar unregisterFocusable = function(id) {\n InputsMap.delete(id);\n};\nvar focusFocusable = function(id) {\n var select = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var input = InputsMap.get(id);\n if (!input) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"No input found for id\", id);\n }\n return;\n }\n if (select || !input.focusAndSelect) {\n input.focus();\n } else {\n input.focusAndSelect();\n }\n};\n//# sourceMappingURL=registerFocusable.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,mCAAmC,CAAC;AACxC,SAAS,kCAAkC;CACzC,sBAAsB;CACtB,yBAAyB;CACzB,2BAA2B;AAC7B,CAAC;AACD,OAAO,UAAU,aAAa,gCAAgC;AAC9D,IAAI,4BAA4B,IAAI,IAAI;AACxC,IAAI,oBAAoB,SAAS,IAAI,OAAO;CAC1C,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI,UAAU,IAAI,EAAE,GAAG;GACrB,QAAQ,KAAK,oCAAoC,IAAI;EACvD;CACF;CACA,UAAU,IAAI,IAAI,KAAK;CACvB,OAAO,WAAW;EAChB,UAAU,OAAO,EAAE;CACrB;AACF;AACA,IAAI,sBAAsB,SAAS,IAAI;CACrC,UAAU,OAAO,EAAE;AACrB;AACA,IAAI,iBAAiB,SAAS,IAAI;CAChC,IAAI,SAAS,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC9E,IAAI,QAAQ,UAAU,IAAI,EAAE;CAC5B,IAAI,CAAC,OAAO;EACV,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,yBAAyB,EAAE;EAC1C;EACA;CACF;CACA,IAAI,UAAU,CAAC,MAAM,gBAAgB;EACnC,MAAM,MAAM;CACd,OAAO;EACL,MAAM,eAAe;CACvB;AACF"}
1
+ {"version":3,"file":"registerFocusable.native.js","names":[],"sources":["jsx/registerFocusable.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 registerFocusable_native_exports = {};\n__export(registerFocusable_native_exports, {\n focusFocusable: () => focusFocusable,\n registerFocusable: () => registerFocusable,\n unregisterFocusable: () => unregisterFocusable\n});\nmodule.exports = __toCommonJS(registerFocusable_native_exports);\nvar InputsMap = /* @__PURE__ */ new Map();\nvar registerFocusable = function(id, input) {\n if (process.env.NODE_ENV === \"development\") {\n if (InputsMap.has(id)) {\n console.warn(`Warning, duplicate ID for input: ${id}`);\n }\n }\n InputsMap.set(id, input);\n return function() {\n InputsMap.delete(id);\n };\n};\nvar unregisterFocusable = function(id) {\n InputsMap.delete(id);\n};\nvar focusFocusable = function(id) {\n var select = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;\n var input = InputsMap.get(id);\n if (!input) {\n if (process.env.NODE_ENV === \"development\") {\n console.warn(\"No input found for id\", id);\n }\n return;\n }\n if (select || !input.focusAndSelect) {\n input.focus();\n } else {\n input.focusAndSelect();\n }\n};\n//# sourceMappingURL=registerFocusable.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,mCAAmC,CAAC;AACxC,SAAS,kCAAkC;CACzC,sBAAsB;CACtB,yBAAyB;CACzB,2BAA2B;AAC7B,CAAC;AACD,OAAO,UAAU,aAAa,gCAAgC;AAC9D,IAAI,4BAA4B,IAAI,IAAI;AACxC,IAAI,oBAAoB,SAAS,IAAI,OAAO;CAC1C,IAAI,QAAQ,IAAI,aAAa,eAAe;EAC1C,IAAI,UAAU,IAAI,EAAE,GAAG;GACrB,QAAQ,KAAK,oCAAoC,IAAI;EACvD;CACF;CACA,UAAU,IAAI,IAAI,KAAK;CACvB,OAAO,WAAW;EAChB,UAAU,OAAO,EAAE;CACrB;AACF;AACA,IAAI,sBAAsB,SAAS,IAAI;CACrC,UAAU,OAAO,EAAE;AACrB;AACA,IAAI,iBAAiB,SAAS,IAAI;CAChC,IAAI,SAAS,UAAU,SAAS,KAAK,UAAU,OAAO,KAAK,IAAI,UAAU,KAAK;CAC9E,IAAI,QAAQ,UAAU,IAAI,EAAE;CAC5B,IAAI,CAAC,OAAO;EACV,IAAI,QAAQ,IAAI,aAAa,eAAe;GAC1C,QAAQ,KAAK,yBAAyB,EAAE;EAC1C;EACA;CACF;CACA,IAAI,UAAU,CAAC,MAAM,gBAAgB;EACnC,MAAM,MAAM;CACd,OAAO;EACL,MAAM,eAAe;CACvB;AACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/focusable",
3
- "version": "3.0.0-beta.669.1",
3
+ "version": "3.0.0-beta.728.1",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "files": [
@@ -35,12 +35,12 @@
35
35
  "clean:build": "tamagui-build clean:build"
36
36
  },
37
37
  "dependencies": {
38
- "@tamagui/compose-refs": "3.0.0-beta.669.1",
39
- "@tamagui/web": "3.0.0-beta.669.1"
38
+ "@tamagui/compose-refs": "3.0.0-beta.728.1",
39
+ "@tamagui/web": "3.0.0-beta.728.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@tamagui/build": "3.0.0-beta.669.1",
43
- "react": ">=19"
42
+ "@tamagui/build": "3.0.0-beta.728.1",
43
+ "react": "19.2.3"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "react": ">=19"