@tamagui/focusable 1.89.27 → 1.89.29
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.
- package/dist/cjs/focusableInputHOC.native.js +4 -12
- package/dist/cjs/focusableInputHOC.native.js.map +2 -2
- package/dist/esm/focusableInputHOC.native.js +3 -2
- package/dist/esm/focusableInputHOC.native.js.map +2 -2
- package/dist/jsx/focusableInputHOC.native.js +3 -2
- package/dist/jsx/focusableInputHOC.native.js.map +2 -2
- package/package.json +4 -4
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
6
|
var __export = (target, all) => {
|
|
8
7
|
for (var name in all)
|
|
9
8
|
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
@@ -13,21 +12,14 @@ var __export = (target, all) => {
|
|
|
13
12
|
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
13
|
return to;
|
|
15
14
|
};
|
|
16
|
-
var
|
|
17
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
22
|
-
mod
|
|
23
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
16
|
var focusableInputHOC_exports = {};
|
|
25
17
|
__export(focusableInputHOC_exports, {
|
|
26
18
|
focusableInputHOC: () => focusableInputHOC,
|
|
27
19
|
useFocusable: () => useFocusable
|
|
28
20
|
});
|
|
29
21
|
module.exports = __toCommonJS(focusableInputHOC_exports);
|
|
30
|
-
var import_compose_refs = require("@tamagui/compose-refs"), import_web = require("@tamagui/web"), import_react =
|
|
22
|
+
var import_jsx_runtime = require("react/jsx-runtime"), import_compose_refs = require("@tamagui/compose-refs"), import_web = require("@tamagui/web"), import_react = require("react"), import_registerFocusable = require("./registerFocusable");
|
|
31
23
|
function _define_property(obj, key, value) {
|
|
32
24
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
33
25
|
value,
|
|
@@ -98,7 +90,7 @@ function focusableInputHOC(Component) {
|
|
|
98
90
|
}), combinedRef = _useFocusable.ref, onChangeText = _useFocusable.onChangeText, finalProps = isInput ? _object_spread_props(_object_spread({}, props), {
|
|
99
91
|
onChangeText
|
|
100
92
|
}) : props;
|
|
101
|
-
return /* @__PURE__ */
|
|
93
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, _object_spread({
|
|
102
94
|
ref: combinedRef
|
|
103
95
|
}, finalProps));
|
|
104
96
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/focusable/src/focusableInputHOC.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["useFocusable", "isInput", "props", "ref", "id", "onChangeText", "value", "defaultValue", "inputValue", "useRef", "unregisterFocusable", "inputRef", "useCallback", "input", "current", "registerFocusable", "focus", "focusAndSelect", "setSelection", "length", "combinedRefs", "composeRefs", "useEffect", "useEvent", "focusableInputHOC", "Component", "styleable", "staticConfig", "combinedRef", "finalProps", "
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;uDAAA,sBAA4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F,4BAAAA,SAAAA,SAAAA,wBAAwBxB,SACGD,gBAAAA,aAAa;MACtDG;MACAD;MACAD;IACF,CAAA,GAJa2B,cAA8B5B,cAAnCG,KAAkBE,eAAiBL,cAAjBK,cAKpBwB,aAAa5B,UACf,qBAAA,eAAA,CAAA,GACKC,KAAAA,GAAAA;MACHG;SAEFH;AAGJ,WAAO,uCAAA4B,KAACL,WAAAA,eAAAA;MAAUtB,KAAKyB;OAAiBC,UAAAA,CAAAA;EAC1C,CAAA;AACF;",
|
|
5
|
+
"names": ["useFocusable", "isInput", "props", "ref", "id", "onChangeText", "value", "defaultValue", "inputValue", "useRef", "unregisterFocusable", "inputRef", "useCallback", "input", "current", "registerFocusable", "focus", "focusAndSelect", "setSelection", "length", "combinedRefs", "composeRefs", "useEffect", "useEvent", "focusableInputHOC", "Component", "styleable", "staticConfig", "combinedRef", "finalProps", "_jsx"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { composeRefs } from "@tamagui/compose-refs";
|
|
2
3
|
import { useEvent } from "@tamagui/web";
|
|
3
|
-
import
|
|
4
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
4
5
|
import { registerFocusable } from "./registerFocusable";
|
|
5
6
|
function _define_property(obj, key, value) {
|
|
6
7
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
@@ -72,7 +73,7 @@ function focusableInputHOC(Component) {
|
|
|
72
73
|
}), combinedRef = _useFocusable.ref, onChangeText = _useFocusable.onChangeText, finalProps = isInput ? _object_spread_props(_object_spread({}, props), {
|
|
73
74
|
onChangeText
|
|
74
75
|
}) : props;
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ _jsx(Component, _object_spread({
|
|
76
77
|
ref: combinedRef
|
|
77
78
|
}, finalProps));
|
|
78
79
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/focusable/src/focusableInputHOC.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAASA,mBAAmB;AAE5B,SAASC,gBAAgB;AACzB,
|
|
5
|
-
"names": ["composeRefs", "useEvent", "
|
|
4
|
+
"mappings": ";AAAA,SAASA,mBAAmB;AAE5B,SAASC,gBAAgB;AACzB,SAAgBC,aAAaC,WAAWC,cAAc;AAEtD,SAASC,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAS3B,SAASC,aAAa,OAQ5B;MAPCC,UAD2B,MAC3BA,SACAC,QAF2B,MAE3BA,OACAC,MAH2B,MAG3BA,KAMQC,KAA0CF,MAA1CE,IAAIC,eAAsCH,MAAtCG,cAAcC,QAAwBJ,MAAxBI,OAAOC,eAAiBL,MAAjBK,cAC3BC,aAAaV,OAAOQ,SAASC,gBAAgB,EAAA,GAC7CE,sBAAsBX,OAAAA,GAEtBY,WAAWd,YACf,SAACe,OAAAA;QAGCF;AAFA,IAAKL,MACAO,WACLF,+BAAAA,oBAAoBG,aAAO,QAA3BH,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA,GACAA,oBAAoBG,UAAUb,kBAAkBK,IAAI,eAAA;MAClDS,OAAOF,MAAME;OAETZ,WAAW;;MAEba,gBAAAA,WAAAA;AACEH,cAAME,MAAK,GACPF,MAAMI,gBAAgB,OAAOP,WAAWI,WAAY,YACtDD,MAAMI,aAAa,GAAGP,WAAWI,QAAQI,MAAM;MAEnD;IACF,CAAA,CAAA;EAEJ,GACA;IAACf;IAASG;GAAG,GAGTa,eAAevB,YAAYS,KAAKO,QAAAA;AAEtCb,mBAAU,WAAA;AACR,WAAO,WAAA;UACLY;OAAAA,+BAAAA,oBAAoBG,aAAO,QAA3BH,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA;IACF;EACF,GAAG,CAAA,CAAE,GAEE;IACLN,KAAKc;IACLZ,cAAcV,SAAS,SAACW,QAAAA;AACtBE,iBAAWI,UAAUN,QACrBD,gBAAAA,QAAAA,aAAeC,MAAAA;IACjB,CAAA;EACF;AACF;AAEO,SAASY,kBAA8CC,WAAY;AACxE,SAAOA,UAAUC,UAAU,SAAClB,OAAuBC,KAAAA;QACjCgB,yBAAVlB,WAAUkB,0BAAAA,UAAUE,kBAAY,QAAtBF,4BAAAA,SAAAA,SAAAA,wBAAwBlB,SACGD,gBAAAA,aAAa;MACtDG;MACAD;MACAD;IACF,CAAA,GAJaqB,cAA8BtB,cAAnCG,KAAkBE,eAAiBL,cAAjBK,cAKpBkB,aAAatB,UACf,qBAAA,eAAA,CAAA,GACKC,KAAAA,GAAAA;MACHG;SAEFH;AAGJ,WAAO,qBAACiB,WAAAA,eAAAA;MAAUhB,KAAKmB;OAAiBC,UAAAA,CAAAA;EAC1C,CAAA;AACF;",
|
|
5
|
+
"names": ["composeRefs", "useEvent", "useCallback", "useEffect", "useRef", "registerFocusable", "useFocusable", "isInput", "props", "ref", "id", "onChangeText", "value", "defaultValue", "inputValue", "unregisterFocusable", "inputRef", "input", "current", "focus", "focusAndSelect", "setSelection", "length", "combinedRefs", "focusableInputHOC", "Component", "styleable", "staticConfig", "combinedRef", "finalProps"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
2
|
import { composeRefs } from "@tamagui/compose-refs";
|
|
2
3
|
import { useEvent } from "@tamagui/web";
|
|
3
|
-
import
|
|
4
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
4
5
|
import { registerFocusable } from "./registerFocusable";
|
|
5
6
|
function _define_property(obj, key, value) {
|
|
6
7
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
@@ -72,7 +73,7 @@ function focusableInputHOC(Component) {
|
|
|
72
73
|
}), combinedRef = _useFocusable.ref, onChangeText = _useFocusable.onChangeText, finalProps = isInput ? _object_spread_props(_object_spread({}, props), {
|
|
73
74
|
onChangeText
|
|
74
75
|
}) : props;
|
|
75
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ _jsx(Component, _object_spread({
|
|
76
77
|
ref: combinedRef
|
|
77
78
|
}, finalProps));
|
|
78
79
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/packages/focusable/src/focusableInputHOC.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAASA,mBAAmB;AAE5B,SAASC,gBAAgB;AACzB,
|
|
5
|
-
"names": ["composeRefs", "useEvent", "
|
|
4
|
+
"mappings": ";AAAA,SAASA,mBAAmB;AAE5B,SAASC,gBAAgB;AACzB,SAAgBC,aAAaC,WAAWC,cAAc;AAEtD,SAASC,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAS3B,SAASC,aAAa,OAQ5B;MAPCC,UAD2B,MAC3BA,SACAC,QAF2B,MAE3BA,OACAC,MAH2B,MAG3BA,KAMQC,KAA0CF,MAA1CE,IAAIC,eAAsCH,MAAtCG,cAAcC,QAAwBJ,MAAxBI,OAAOC,eAAiBL,MAAjBK,cAC3BC,aAAaV,OAAOQ,SAASC,gBAAgB,EAAA,GAC7CE,sBAAsBX,OAAAA,GAEtBY,WAAWd,YACf,SAACe,OAAAA;QAGCF;AAFA,IAAKL,MACAO,WACLF,+BAAAA,oBAAoBG,aAAO,QAA3BH,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA,GACAA,oBAAoBG,UAAUb,kBAAkBK,IAAI,eAAA;MAClDS,OAAOF,MAAME;OAETZ,WAAW;;MAEba,gBAAAA,WAAAA;AACEH,cAAME,MAAK,GACPF,MAAMI,gBAAgB,OAAOP,WAAWI,WAAY,YACtDD,MAAMI,aAAa,GAAGP,WAAWI,QAAQI,MAAM;MAEnD;IACF,CAAA,CAAA;EAEJ,GACA;IAACf;IAASG;GAAG,GAGTa,eAAevB,YAAYS,KAAKO,QAAAA;AAEtCb,mBAAU,WAAA;AACR,WAAO,WAAA;UACLY;OAAAA,+BAAAA,oBAAoBG,aAAO,QAA3BH,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA;IACF;EACF,GAAG,CAAA,CAAE,GAEE;IACLN,KAAKc;IACLZ,cAAcV,SAAS,SAACW,QAAAA;AACtBE,iBAAWI,UAAUN,QACrBD,gBAAAA,QAAAA,aAAeC,MAAAA;IACjB,CAAA;EACF;AACF;AAEO,SAASY,kBAA8CC,WAAY;AACxE,SAAOA,UAAUC,UAAU,SAAClB,OAAuBC,KAAAA;QACjCgB,yBAAVlB,WAAUkB,0BAAAA,UAAUE,kBAAY,QAAtBF,4BAAAA,SAAAA,SAAAA,wBAAwBlB,SACGD,gBAAAA,aAAa;MACtDG;MACAD;MACAD;IACF,CAAA,GAJaqB,cAA8BtB,cAAnCG,KAAkBE,eAAiBL,cAAjBK,cAKpBkB,aAAatB,UACf,qBAAA,eAAA,CAAA,GACKC,KAAAA,GAAAA;MACHG;SAEFH;AAGJ,WAAO,qBAACiB,WAAAA,eAAAA;MAAUhB,KAAKmB;OAAiBC,UAAAA,CAAAA;EAC1C,CAAA;AACF;",
|
|
5
|
+
"names": ["composeRefs", "useEvent", "useCallback", "useEffect", "useRef", "registerFocusable", "useFocusable", "isInput", "props", "ref", "id", "onChangeText", "value", "defaultValue", "inputValue", "unregisterFocusable", "inputRef", "input", "current", "focus", "focusAndSelect", "setSelection", "length", "combinedRefs", "focusableInputHOC", "Component", "styleable", "staticConfig", "combinedRef", "finalProps"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/focusable",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.29",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"clean:build": "tamagui-build clean:build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@tamagui/compose-refs": "1.89.
|
|
26
|
-
"@tamagui/web": "1.89.
|
|
25
|
+
"@tamagui/compose-refs": "1.89.29",
|
|
26
|
+
"@tamagui/web": "1.89.29"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": "*"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@tamagui/build": "1.89.
|
|
32
|
+
"@tamagui/build": "1.89.29",
|
|
33
33
|
"react": "^18.2.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|