@tamagui/focusable 1.110.3 → 1.110.5
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.js +1 -15
- package/dist/cjs/focusableInputHOC.js.map +1 -1
- package/dist/cjs/focusableInputHOC.native.js +4 -35
- package/dist/cjs/focusableInputHOC.native.js.map +2 -2
- package/dist/esm/focusableInputHOC.js +1 -16
- package/dist/esm/focusableInputHOC.js.map +1 -1
- package/dist/esm/focusableInputHOC.mjs +2 -24
- package/dist/esm/focusableInputHOC.mjs.map +1 -1
- package/dist/esm/focusableInputHOC.native.js +4 -35
- package/dist/esm/focusableInputHOC.native.js.map +2 -2
- package/dist/jsx/focusableInputHOC.js +1 -16
- package/dist/jsx/focusableInputHOC.js.map +1 -1
- package/dist/jsx/focusableInputHOC.mjs +2 -24
- package/dist/jsx/focusableInputHOC.mjs.map +1 -1
- package/dist/jsx/focusableInputHOC.native.js +4 -35
- package/dist/jsx/focusableInputHOC.native.js.map +2 -2
- package/package.json +4 -4
- package/src/focusableInputHOC.tsx +1 -22
- package/types/focusableInputHOC.d.ts +0 -2
- package/types/focusableInputHOC.d.ts.map +1 -1
|
@@ -22,11 +22,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
22
22
|
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
23
|
var focusableInputHOC_exports = {};
|
|
24
24
|
__export(focusableInputHOC_exports, {
|
|
25
|
-
focusableInputHOC: () => focusableInputHOC,
|
|
26
25
|
useFocusable: () => useFocusable
|
|
27
26
|
});
|
|
28
27
|
module.exports = __toCommonJS(focusableInputHOC_exports);
|
|
29
|
-
var
|
|
28
|
+
var import_compose_refs = require("@tamagui/compose-refs"), import_web = require("@tamagui/web"), import_react = __toESM(require("react")), import_registerFocusable = require("./registerFocusable");
|
|
30
29
|
function useFocusable({
|
|
31
30
|
isInput,
|
|
32
31
|
props,
|
|
@@ -55,17 +54,4 @@ function useFocusable({
|
|
|
55
54
|
})
|
|
56
55
|
};
|
|
57
56
|
}
|
|
58
|
-
function focusableInputHOC(Component) {
|
|
59
|
-
return Component.styleable((props, ref) => {
|
|
60
|
-
const isInput = Component.staticConfig?.isInput, { ref: combinedRef, onChangeText } = useFocusable({
|
|
61
|
-
ref,
|
|
62
|
-
props,
|
|
63
|
-
isInput
|
|
64
|
-
}), finalProps = isInput ? {
|
|
65
|
-
...props,
|
|
66
|
-
onChangeText
|
|
67
|
-
} : props;
|
|
68
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, { ref: combinedRef, ...finalProps });
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
57
|
//# sourceMappingURL=focusableInputHOC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/focusableInputHOC.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAA4B,kCAC5B,aAAyB,yBAEzB,eAAkB,2BAElB,2BAAkC;AAS3B,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AACF,GAA8E;AAC5E,QAAM,EAAE,IAAI,cAAc,OAAO,aAAa,IAAI,OAC5C,aAAa,aAAAA,QAAM,OAAO,SAAS,gBAAgB,EAAE,GACrD,sBAAsB,aAAAA,QAAM,OAA+B,GAE3D,WAAW,aAAAA,QAAM;AAAA,IACrB,CAAC,UAAU;AACT,MAAK,MACA,UACL,oBAAoB,UAAU,GAC9B,oBAAoB,cAAU,4CAAkB,IAAI;AAAA,QAClD,OAAO,MAAM;AAAA,QAEb,GAAI,WAAW;AAAA;AAAA,UAEb,iBAAiB;AACf,kBAAM,MAAM,GACR,MAAM,gBAAgB,OAAO,WAAW,WAAY,YACtD,MAAM,aAAa,GAAG,WAAW,QAAQ,MAAM;AAAA,UAEnD;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,SAAS,EAAE;AAAA,EACd,GAEM,mBAAe,iCAAY,KAAK,QAAQ;AAE9C,sBAAAA,QAAM,UAAU,MACP,MAAM;AACX,wBAAoB,UAAU;AAAA,EAChC,GACC,CAAC,CAAC,GAEE;AAAA,IACL,KAAK;AAAA,IACL,kBAAc,qBAAS,CAACC,WAAU;AAChC,iBAAW,UAAUA,QACrB,eAAeA,MAAK;AAAA,IACtB,CAAC;AAAA,EACH;AACF;",
|
|
5
5
|
"names": ["React", "value"]
|
|
6
6
|
}
|
|
@@ -23,11 +23,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
24
24
|
var focusableInputHOC_exports = {};
|
|
25
25
|
__export(focusableInputHOC_exports, {
|
|
26
|
-
focusableInputHOC: () => focusableInputHOC,
|
|
27
26
|
useFocusable: () => useFocusable
|
|
28
27
|
});
|
|
29
28
|
module.exports = __toCommonJS(focusableInputHOC_exports);
|
|
30
|
-
var
|
|
29
|
+
var import_compose_refs = require("@tamagui/compose-refs"), import_web = require("@tamagui/web"), import_react = __toESM(require("react")), import_registerFocusable = require("./registerFocusable");
|
|
31
30
|
function _define_property(obj, key, value) {
|
|
32
31
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
33
32
|
value,
|
|
@@ -38,30 +37,15 @@ function _define_property(obj, key, value) {
|
|
|
38
37
|
}
|
|
39
38
|
function _object_spread(target) {
|
|
40
39
|
for (var i = 1; i < arguments.length; i++) {
|
|
41
|
-
var source = arguments[i] != null ? arguments[i] : {},
|
|
42
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
40
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
41
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
43
42
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
44
|
-
}))),
|
|
43
|
+
}))), ownKeys.forEach(function(key) {
|
|
45
44
|
_define_property(target, key, source[key]);
|
|
46
45
|
});
|
|
47
46
|
}
|
|
48
47
|
return target;
|
|
49
48
|
}
|
|
50
|
-
function ownKeys(object, enumerableOnly) {
|
|
51
|
-
var keys = Object.keys(object);
|
|
52
|
-
if (Object.getOwnPropertySymbols) {
|
|
53
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
54
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
55
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
56
|
-
})), keys.push.apply(keys, symbols);
|
|
57
|
-
}
|
|
58
|
-
return keys;
|
|
59
|
-
}
|
|
60
|
-
function _object_spread_props(target, source) {
|
|
61
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
62
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
63
|
-
}), target;
|
|
64
|
-
}
|
|
65
49
|
function useFocusable(param) {
|
|
66
50
|
var isInput = param.isInput, props = param.props, ref = param.ref, id = props.id, onChangeText = props.onChangeText, value = props.value, defaultValue = props.defaultValue, inputValue = import_react.default.useRef(value || defaultValue || ""), unregisterFocusable = import_react.default.useRef(), inputRef = import_react.default.useCallback(function(input) {
|
|
67
51
|
var _unregisterFocusable_current;
|
|
@@ -89,23 +73,8 @@ function useFocusable(param) {
|
|
|
89
73
|
})
|
|
90
74
|
};
|
|
91
75
|
}
|
|
92
|
-
function focusableInputHOC(Component) {
|
|
93
|
-
return Component.styleable(function(props, ref) {
|
|
94
|
-
var _Component_staticConfig, isInput = (_Component_staticConfig = Component.staticConfig) === null || _Component_staticConfig === void 0 ? void 0 : _Component_staticConfig.isInput, _useFocusable = useFocusable({
|
|
95
|
-
ref,
|
|
96
|
-
props,
|
|
97
|
-
isInput
|
|
98
|
-
}), combinedRef = _useFocusable.ref, onChangeText = _useFocusable.onChangeText, finalProps = isInput ? _object_spread_props(_object_spread({}, props), {
|
|
99
|
-
onChangeText
|
|
100
|
-
}) : props;
|
|
101
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, _object_spread({
|
|
102
|
-
ref: combinedRef
|
|
103
|
-
}, finalProps));
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
76
|
// Annotate the CommonJS export names for ESM import in node:
|
|
107
77
|
0 && (module.exports = {
|
|
108
|
-
focusableInputHOC,
|
|
109
78
|
useFocusable
|
|
110
79
|
});
|
|
111
80
|
//# sourceMappingURL=focusableInputHOC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/focusable/src/focusableInputHOC.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["useFocusable", "isInput", "props", "ref", "id", "onChangeText", "value", "defaultValue", "inputValue", "React", "useRef", "unregisterFocusable", "inputRef", "useCallback", "input", "current", "registerFocusable", "focus", "focusAndSelect", "setSelection", "length", "combinedRefs", "composeRefs", "useEffect", "useEvent"
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0BAA4B,kCAC5B,aAAyB,yBAEzB,eAAkB,2BAElB,2BAAkC;;;;;;;;;;;;;;;;;;;;AAS3B,SAASA,aAAa,OAI+C;MAH1EC,UAD2B,MAC3BA,SACAC,QAF2B,MAE3BA,OACAC,MAH2B,MAG3BA,KAEQC,KAA0CF,MAA1CE,IAAIC,eAAsCH,MAAtCG,cAAcC,QAAwBJ,MAAxBI,OAAOC,eAAiBL,MAAjBK,cAC3BC,aAAaC,aAAAA,QAAMC,OAAOJ,SAASC,gBAAgB,EAAA,GACnDI,sBAAsBF,aAAAA,QAAMC,OAAM,GAElCE,WAAWH,aAAAA,QAAMI,YACrB,SAACC,OAAAA;QAGCH;AAFA,IAAKP,MACAU,WACLH,+BAAAA,oBAAoBI,aAAO,QAA3BJ,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA,GACAA,oBAAoBI,cAAUC,4CAAkBZ,IAAI,eAAA;MAClDa,OAAOH,MAAMG;OAEThB,WAAW;;MAEbiB,gBAAAA,WAAAA;AACEJ,cAAMG,MAAK,GACPH,MAAMK,gBAAgB,OAAOX,WAAWO,WAAY,YACtDD,MAAMK,aAAa,GAAGX,WAAWO,QAAQK,MAAM;MAEnD;IACF,CAAA,CAAA;EAEJ,GACA;IAACnB;IAASG;GAAG,GAGTiB,mBAAeC,iCAAYnB,KAAKS,QAAAA;AAEtCH,sBAAAA,QAAMc,UAAU,WAAA;AACd,WAAO,WAAA;UACLZ;OAAAA,+BAAAA,oBAAoBI,aAAO,QAA3BJ,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA;IACF;EACF,GAAG,CAAA,CAAE,GAEE;IACLR,KAAKkB;IACLhB,kBAAcmB,qBAAS,SAAClB,QAAAA;AACtBE,iBAAWO,UAAUT,QACrBD,gBAAAA,QAAAA,aAAeC,MAAAA;IACjB,CAAA;EACF;AACF;",
|
|
5
|
+
"names": ["useFocusable", "isInput", "props", "ref", "id", "onChangeText", "value", "defaultValue", "inputValue", "React", "useRef", "unregisterFocusable", "inputRef", "useCallback", "input", "current", "registerFocusable", "focus", "focusAndSelect", "setSelection", "length", "combinedRefs", "composeRefs", "useEffect", "useEvent"]
|
|
6
6
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { composeRefs } from "@tamagui/compose-refs";
|
|
3
2
|
import { useEvent } from "@tamagui/web";
|
|
3
|
+
import React from "react";
|
|
4
4
|
import { registerFocusable } from "./registerFocusable";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
function useFocusable({
|
|
7
6
|
isInput,
|
|
8
7
|
props,
|
|
@@ -31,21 +30,7 @@ function useFocusable({
|
|
|
31
30
|
})
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
|
-
function focusableInputHOC(Component) {
|
|
35
|
-
return Component.styleable((props, ref) => {
|
|
36
|
-
const isInput = Component.staticConfig?.isInput, { ref: combinedRef, onChangeText } = useFocusable({
|
|
37
|
-
ref,
|
|
38
|
-
props,
|
|
39
|
-
isInput
|
|
40
|
-
}), finalProps = isInput ? {
|
|
41
|
-
...props,
|
|
42
|
-
onChangeText
|
|
43
|
-
} : props;
|
|
44
|
-
return /* @__PURE__ */ jsx(Component, { ref: combinedRef, ...finalProps });
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
33
|
export {
|
|
48
|
-
focusableInputHOC,
|
|
49
34
|
useFocusable
|
|
50
35
|
};
|
|
51
36
|
//# sourceMappingURL=focusableInputHOC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/focusableInputHOC.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": "AAAA,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AAEzB,OAAO,WAAW;AAElB,SAAS,yBAAyB;AAS3B,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AACF,GAA8E;AAC5E,QAAM,EAAE,IAAI,cAAc,OAAO,aAAa,IAAI,OAC5C,aAAa,MAAM,OAAO,SAAS,gBAAgB,EAAE,GACrD,sBAAsB,MAAM,OAA+B,GAE3D,WAAW,MAAM;AAAA,IACrB,CAAC,UAAU;AACT,MAAK,MACA,UACL,oBAAoB,UAAU,GAC9B,oBAAoB,UAAU,kBAAkB,IAAI;AAAA,QAClD,OAAO,MAAM;AAAA,QAEb,GAAI,WAAW;AAAA;AAAA,UAEb,iBAAiB;AACf,kBAAM,MAAM,GACR,MAAM,gBAAgB,OAAO,WAAW,WAAY,YACtD,MAAM,aAAa,GAAG,WAAW,QAAQ,MAAM;AAAA,UAEnD;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,SAAS,EAAE;AAAA,EACd,GAEM,eAAe,YAAY,KAAK,QAAQ;AAE9C,eAAM,UAAU,MACP,MAAM;AACX,wBAAoB,UAAU;AAAA,EAChC,GACC,CAAC,CAAC,GAEE;AAAA,IACL,KAAK;AAAA,IACL,cAAc,SAAS,CAACA,WAAU;AAChC,iBAAW,UAAUA,QACrB,eAAeA,MAAK;AAAA,IACtB,CAAC;AAAA,EACH;AACF;",
|
|
5
5
|
"names": ["value"]
|
|
6
6
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { composeRefs } from "@tamagui/compose-refs";
|
|
3
2
|
import { useEvent } from "@tamagui/web";
|
|
3
|
+
import React from "react";
|
|
4
4
|
import { registerFocusable } from "./registerFocusable.mjs";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
function useFocusable({
|
|
7
6
|
isInput,
|
|
8
7
|
props,
|
|
@@ -37,26 +36,5 @@ function useFocusable({
|
|
|
37
36
|
})
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
|
-
|
|
41
|
-
return Component.styleable((props, ref) => {
|
|
42
|
-
const isInput = Component.staticConfig?.isInput,
|
|
43
|
-
{
|
|
44
|
-
ref: combinedRef,
|
|
45
|
-
onChangeText
|
|
46
|
-
} = useFocusable({
|
|
47
|
-
ref,
|
|
48
|
-
props,
|
|
49
|
-
isInput
|
|
50
|
-
}),
|
|
51
|
-
finalProps = isInput ? {
|
|
52
|
-
...props,
|
|
53
|
-
onChangeText
|
|
54
|
-
} : props;
|
|
55
|
-
return /* @__PURE__ */jsx(Component, {
|
|
56
|
-
ref: combinedRef,
|
|
57
|
-
...finalProps
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
export { focusableInputHOC, useFocusable };
|
|
39
|
+
export { useFocusable };
|
|
62
40
|
//# sourceMappingURL=focusableInputHOC.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["composeRefs","useEvent","React","registerFocusable","useFocusable","isInput","props","ref","id","onChangeText","value","defaultValue","inputValue","useRef","unregisterFocusable","inputRef","useCallback","input","current","focus","focusAndSelect","setSelection","length","combinedRefs","useEffect","value2"],"sources":["../../src/focusableInputHOC.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,SAASC,QAAA,QAAgB;AAEzB,OAAOC,KAAA,MAAW;AAElB,SAASC,iBAAA,QAAyB;AAS3B,SAASC,aAAa;EAC3BC,OAAA;EACAC,KAAA;EACAC;AACF,GAA8E;EAC5E,MAAM;MAAEC,EAAA;MAAIC,YAAA;MAAcC,KAAA;MAAOC;IAAa,IAAIL,KAAA;IAC5CM,UAAA,GAAaV,KAAA,CAAMW,MAAA,CAAOH,KAAA,IAASC,YAAA,IAAgB,EAAE;IACrDG,mBAAA,GAAsBZ,KAAA,CAAMW,MAAA,CAA+B;IAE3DE,QAAA,GAAWb,KAAA,CAAMc,WAAA,CACpBC,KAAA,IAAU;MACJT,EAAA,IACAS,KAAA,KACLH,mBAAA,CAAoBI,OAAA,GAAU,GAC9BJ,mBAAA,CAAoBI,OAAA,GAAUf,iBAAA,CAAkBK,EAAA,EAAI;QAClDW,KAAA,EAAOF,KAAA,CAAME,KAAA;QAEb,IAAId,OAAA,IAAW;UAAA;UAEbe,eAAA,EAAiB;YACfH,KAAA,CAAME,KAAA,CAAM,GACRF,KAAA,CAAMI,YAAA,IAAgB,OAAOT,UAAA,CAAWM,OAAA,IAAY,YACtDD,KAAA,CAAMI,YAAA,CAAa,GAAGT,UAAA,CAAWM,OAAA,CAAQI,MAAM;UAEnD;QACF;MACF,CAAC;IACH,GACA,CAACjB,OAAA,EAASG,EAAE,CACd;IAEMe,YAAA,GAAevB,WAAA,CAAYO,GAAA,EAAKQ,QAAQ;EAE9C,OAAAb,KAAA,CAAMsB,SAAA,CAAU,MACP,MAAM;IACXV,mBAAA,CAAoBI,OAAA,GAAU;EAChC,GACC,EAAE,GAEE;IACLX,GAAA,EAAKgB,YAAA;IACLd,YAAA,EAAcR,QAAA,CAAUwB,MAAA,IAAU;MAChCb,UAAA,CAAWM,OAAA,GAAUO,MAAA,EACrBhB,YAAA,GAAegB,MAAK;IACtB,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
1
|
import { composeRefs } from "@tamagui/compose-refs";
|
|
4
2
|
import { useEvent } from "@tamagui/web";
|
|
3
|
+
import React from "react";
|
|
5
4
|
import { registerFocusable } from "./registerFocusable";
|
|
6
5
|
function _define_property(obj, key, value) {
|
|
7
6
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
@@ -13,30 +12,15 @@ function _define_property(obj, key, value) {
|
|
|
13
12
|
}
|
|
14
13
|
function _object_spread(target) {
|
|
15
14
|
for (var i = 1; i < arguments.length; i++) {
|
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {},
|
|
17
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
15
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
16
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
18
17
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
19
|
-
}))),
|
|
18
|
+
}))), ownKeys.forEach(function(key) {
|
|
20
19
|
_define_property(target, key, source[key]);
|
|
21
20
|
});
|
|
22
21
|
}
|
|
23
22
|
return target;
|
|
24
23
|
}
|
|
25
|
-
function ownKeys(object, enumerableOnly) {
|
|
26
|
-
var keys = Object.keys(object);
|
|
27
|
-
if (Object.getOwnPropertySymbols) {
|
|
28
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
29
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
30
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
31
|
-
})), keys.push.apply(keys, symbols);
|
|
32
|
-
}
|
|
33
|
-
return keys;
|
|
34
|
-
}
|
|
35
|
-
function _object_spread_props(target, source) {
|
|
36
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
37
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
38
|
-
}), target;
|
|
39
|
-
}
|
|
40
24
|
function useFocusable(param) {
|
|
41
25
|
var isInput = param.isInput, props = param.props, ref = param.ref, id = props.id, onChangeText = props.onChangeText, value = props.value, defaultValue = props.defaultValue, inputValue = React.useRef(value || defaultValue || ""), unregisterFocusable = React.useRef(), inputRef = React.useCallback(function(input) {
|
|
42
26
|
var _unregisterFocusable_current;
|
|
@@ -64,22 +48,7 @@ function useFocusable(param) {
|
|
|
64
48
|
})
|
|
65
49
|
};
|
|
66
50
|
}
|
|
67
|
-
function focusableInputHOC(Component) {
|
|
68
|
-
return Component.styleable(function(props, ref) {
|
|
69
|
-
var _Component_staticConfig, isInput = (_Component_staticConfig = Component.staticConfig) === null || _Component_staticConfig === void 0 ? void 0 : _Component_staticConfig.isInput, _useFocusable = useFocusable({
|
|
70
|
-
ref,
|
|
71
|
-
props,
|
|
72
|
-
isInput
|
|
73
|
-
}), combinedRef = _useFocusable.ref, onChangeText = _useFocusable.onChangeText, finalProps = isInput ? _object_spread_props(_object_spread({}, props), {
|
|
74
|
-
onChangeText
|
|
75
|
-
}) : props;
|
|
76
|
-
return /* @__PURE__ */ _jsx(Component, _object_spread({
|
|
77
|
-
ref: combinedRef
|
|
78
|
-
}, finalProps));
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
51
|
export {
|
|
82
|
-
focusableInputHOC,
|
|
83
52
|
useFocusable
|
|
84
53
|
};
|
|
85
54
|
//# sourceMappingURL=focusableInputHOC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/focusable/src/focusableInputHOC.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["
|
|
4
|
+
"mappings": "AAAA,SAASA,mBAAmB;AAC5B,SAASC,gBAAgB;AAEzB,OAAOC,WAAW;AAElB,SAASC,yBAAyB;;;;;;;;;;;;;;;;;;;;AAS3B,SAASC,aAAa,OAI+C;MAH1EC,UAD2B,MAC3BA,SACAC,QAF2B,MAE3BA,OACAC,MAH2B,MAG3BA,KAEQC,KAA0CF,MAA1CE,IAAIC,eAAsCH,MAAtCG,cAAcC,QAAwBJ,MAAxBI,OAAOC,eAAiBL,MAAjBK,cAC3BC,aAAaV,MAAMW,OAAOH,SAASC,gBAAgB,EAAA,GACnDG,sBAAsBZ,MAAMW,OAAM,GAElCE,WAAWb,MAAMc,YACrB,SAACC,OAAAA;QAGCH;AAFA,IAAKN,MACAS,WACLH,+BAAAA,oBAAoBI,aAAO,QAA3BJ,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA,GACAA,oBAAoBI,UAAUf,kBAAkBK,IAAI,eAAA;MAClDW,OAAOF,MAAME;OAETd,WAAW;;MAEbe,gBAAAA,WAAAA;AACEH,cAAME,MAAK,GACPF,MAAMI,gBAAgB,OAAOT,WAAWM,WAAY,YACtDD,MAAMI,aAAa,GAAGT,WAAWM,QAAQI,MAAM;MAEnD;IACF,CAAA,CAAA;EAEJ,GACA;IAACjB;IAASG;GAAG,GAGTe,eAAevB,YAAYO,KAAKQ,QAAAA;AAEtCb,eAAMsB,UAAU,WAAA;AACd,WAAO,WAAA;UACLV;OAAAA,+BAAAA,oBAAoBI,aAAO,QAA3BJ,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA;IACF;EACF,GAAG,CAAA,CAAE,GAEE;IACLP,KAAKgB;IACLd,cAAcR,SAAS,SAACS,QAAAA;AACtBE,iBAAWM,UAAUR,QACrBD,gBAAAA,QAAAA,aAAeC,MAAAA;IACjB,CAAA;EACF;AACF;",
|
|
5
|
+
"names": ["composeRefs", "useEvent", "React", "registerFocusable", "useFocusable", "isInput", "props", "ref", "id", "onChangeText", "value", "defaultValue", "inputValue", "useRef", "unregisterFocusable", "inputRef", "useCallback", "input", "current", "focus", "focusAndSelect", "setSelection", "length", "combinedRefs", "useEffect"]
|
|
6
6
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { composeRefs } from "@tamagui/compose-refs";
|
|
3
2
|
import { useEvent } from "@tamagui/web";
|
|
3
|
+
import React from "react";
|
|
4
4
|
import { registerFocusable } from "./registerFocusable";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
function useFocusable({
|
|
7
6
|
isInput,
|
|
8
7
|
props,
|
|
@@ -31,21 +30,7 @@ function useFocusable({
|
|
|
31
30
|
})
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
|
-
function focusableInputHOC(Component) {
|
|
35
|
-
return Component.styleable((props, ref) => {
|
|
36
|
-
const isInput = Component.staticConfig?.isInput, { ref: combinedRef, onChangeText } = useFocusable({
|
|
37
|
-
ref,
|
|
38
|
-
props,
|
|
39
|
-
isInput
|
|
40
|
-
}), finalProps = isInput ? {
|
|
41
|
-
...props,
|
|
42
|
-
onChangeText
|
|
43
|
-
} : props;
|
|
44
|
-
return /* @__PURE__ */ jsx(Component, { ref: combinedRef, ...finalProps });
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
33
|
export {
|
|
48
|
-
focusableInputHOC,
|
|
49
34
|
useFocusable
|
|
50
35
|
};
|
|
51
36
|
//# sourceMappingURL=focusableInputHOC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/focusableInputHOC.tsx"],
|
|
4
|
-
"mappings": "AAAA,
|
|
4
|
+
"mappings": "AAAA,SAAS,mBAAmB;AAC5B,SAAS,gBAAgB;AAEzB,OAAO,WAAW;AAElB,SAAS,yBAAyB;AAS3B,SAAS,aAAa;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AACF,GAA8E;AAC5E,QAAM,EAAE,IAAI,cAAc,OAAO,aAAa,IAAI,OAC5C,aAAa,MAAM,OAAO,SAAS,gBAAgB,EAAE,GACrD,sBAAsB,MAAM,OAA+B,GAE3D,WAAW,MAAM;AAAA,IACrB,CAAC,UAAU;AACT,MAAK,MACA,UACL,oBAAoB,UAAU,GAC9B,oBAAoB,UAAU,kBAAkB,IAAI;AAAA,QAClD,OAAO,MAAM;AAAA,QAEb,GAAI,WAAW;AAAA;AAAA,UAEb,iBAAiB;AACf,kBAAM,MAAM,GACR,MAAM,gBAAgB,OAAO,WAAW,WAAY,YACtD,MAAM,aAAa,GAAG,WAAW,QAAQ,MAAM;AAAA,UAEnD;AAAA,QACF;AAAA,MACF,CAAC;AAAA,IACH;AAAA,IACA,CAAC,SAAS,EAAE;AAAA,EACd,GAEM,eAAe,YAAY,KAAK,QAAQ;AAE9C,eAAM,UAAU,MACP,MAAM;AACX,wBAAoB,UAAU;AAAA,EAChC,GACC,CAAC,CAAC,GAEE;AAAA,IACL,KAAK;AAAA,IACL,cAAc,SAAS,CAACA,WAAU;AAChC,iBAAW,UAAUA,QACrB,eAAeA,MAAK;AAAA,IACtB,CAAC;AAAA,EACH;AACF;",
|
|
5
5
|
"names": ["value"]
|
|
6
6
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { composeRefs } from "@tamagui/compose-refs";
|
|
3
2
|
import { useEvent } from "@tamagui/web";
|
|
3
|
+
import React from "react";
|
|
4
4
|
import { registerFocusable } from "./registerFocusable.mjs";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
5
|
function useFocusable({
|
|
7
6
|
isInput,
|
|
8
7
|
props,
|
|
@@ -37,26 +36,5 @@ function useFocusable({
|
|
|
37
36
|
})
|
|
38
37
|
};
|
|
39
38
|
}
|
|
40
|
-
|
|
41
|
-
return Component.styleable((props, ref) => {
|
|
42
|
-
const isInput = Component.staticConfig?.isInput,
|
|
43
|
-
{
|
|
44
|
-
ref: combinedRef,
|
|
45
|
-
onChangeText
|
|
46
|
-
} = useFocusable({
|
|
47
|
-
ref,
|
|
48
|
-
props,
|
|
49
|
-
isInput
|
|
50
|
-
}),
|
|
51
|
-
finalProps = isInput ? {
|
|
52
|
-
...props,
|
|
53
|
-
onChangeText
|
|
54
|
-
} : props;
|
|
55
|
-
return /* @__PURE__ */jsx(Component, {
|
|
56
|
-
ref: combinedRef,
|
|
57
|
-
...finalProps
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
export { focusableInputHOC, useFocusable };
|
|
39
|
+
export { useFocusable };
|
|
62
40
|
//# sourceMappingURL=focusableInputHOC.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["composeRefs","useEvent","React","registerFocusable","useFocusable","isInput","props","ref","id","onChangeText","value","defaultValue","inputValue","useRef","unregisterFocusable","inputRef","useCallback","input","current","focus","focusAndSelect","setSelection","length","combinedRefs","useEffect","value2"],"sources":["../../src/focusableInputHOC.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,WAAA,QAAmB;AAC5B,SAASC,QAAA,QAAgB;AAEzB,OAAOC,KAAA,MAAW;AAElB,SAASC,iBAAA,QAAyB;AAS3B,SAASC,aAAa;EAC3BC,OAAA;EACAC,KAAA;EACAC;AACF,GAA8E;EAC5E,MAAM;MAAEC,EAAA;MAAIC,YAAA;MAAcC,KAAA;MAAOC;IAAa,IAAIL,KAAA;IAC5CM,UAAA,GAAaV,KAAA,CAAMW,MAAA,CAAOH,KAAA,IAASC,YAAA,IAAgB,EAAE;IACrDG,mBAAA,GAAsBZ,KAAA,CAAMW,MAAA,CAA+B;IAE3DE,QAAA,GAAWb,KAAA,CAAMc,WAAA,CACpBC,KAAA,IAAU;MACJT,EAAA,IACAS,KAAA,KACLH,mBAAA,CAAoBI,OAAA,GAAU,GAC9BJ,mBAAA,CAAoBI,OAAA,GAAUf,iBAAA,CAAkBK,EAAA,EAAI;QAClDW,KAAA,EAAOF,KAAA,CAAME,KAAA;QAEb,IAAId,OAAA,IAAW;UAAA;UAEbe,eAAA,EAAiB;YACfH,KAAA,CAAME,KAAA,CAAM,GACRF,KAAA,CAAMI,YAAA,IAAgB,OAAOT,UAAA,CAAWM,OAAA,IAAY,YACtDD,KAAA,CAAMI,YAAA,CAAa,GAAGT,UAAA,CAAWM,OAAA,CAAQI,MAAM;UAEnD;QACF;MACF,CAAC;IACH,GACA,CAACjB,OAAA,EAASG,EAAE,CACd;IAEMe,YAAA,GAAevB,WAAA,CAAYO,GAAA,EAAKQ,QAAQ;EAE9C,OAAAb,KAAA,CAAMsB,SAAA,CAAU,MACP,MAAM;IACXV,mBAAA,CAAoBI,OAAA,GAAU;EAChC,GACC,EAAE,GAEE;IACLX,GAAA,EAAKgB,YAAA;IACLd,YAAA,EAAcR,QAAA,CAAUwB,MAAA,IAAU;MAChCb,UAAA,CAAWM,OAAA,GAAUO,MAAA,EACrBhB,YAAA,GAAegB,MAAK;IACtB,CAAC;EACH;AACF","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import React from "react";
|
|
3
1
|
import { composeRefs } from "@tamagui/compose-refs";
|
|
4
2
|
import { useEvent } from "@tamagui/web";
|
|
3
|
+
import React from "react";
|
|
5
4
|
import { registerFocusable } from "./registerFocusable";
|
|
6
5
|
function _define_property(obj, key, value) {
|
|
7
6
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
@@ -13,30 +12,15 @@ function _define_property(obj, key, value) {
|
|
|
13
12
|
}
|
|
14
13
|
function _object_spread(target) {
|
|
15
14
|
for (var i = 1; i < arguments.length; i++) {
|
|
16
|
-
var source = arguments[i] != null ? arguments[i] : {},
|
|
17
|
-
typeof Object.getOwnPropertySymbols == "function" && (
|
|
15
|
+
var source = arguments[i] != null ? arguments[i] : {}, ownKeys = Object.keys(source);
|
|
16
|
+
typeof Object.getOwnPropertySymbols == "function" && (ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
18
17
|
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
19
|
-
}))),
|
|
18
|
+
}))), ownKeys.forEach(function(key) {
|
|
20
19
|
_define_property(target, key, source[key]);
|
|
21
20
|
});
|
|
22
21
|
}
|
|
23
22
|
return target;
|
|
24
23
|
}
|
|
25
|
-
function ownKeys(object, enumerableOnly) {
|
|
26
|
-
var keys = Object.keys(object);
|
|
27
|
-
if (Object.getOwnPropertySymbols) {
|
|
28
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
29
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
30
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
31
|
-
})), keys.push.apply(keys, symbols);
|
|
32
|
-
}
|
|
33
|
-
return keys;
|
|
34
|
-
}
|
|
35
|
-
function _object_spread_props(target, source) {
|
|
36
|
-
return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
|
37
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
38
|
-
}), target;
|
|
39
|
-
}
|
|
40
24
|
function useFocusable(param) {
|
|
41
25
|
var isInput = param.isInput, props = param.props, ref = param.ref, id = props.id, onChangeText = props.onChangeText, value = props.value, defaultValue = props.defaultValue, inputValue = React.useRef(value || defaultValue || ""), unregisterFocusable = React.useRef(), inputRef = React.useCallback(function(input) {
|
|
42
26
|
var _unregisterFocusable_current;
|
|
@@ -64,22 +48,7 @@ function useFocusable(param) {
|
|
|
64
48
|
})
|
|
65
49
|
};
|
|
66
50
|
}
|
|
67
|
-
function focusableInputHOC(Component) {
|
|
68
|
-
return Component.styleable(function(props, ref) {
|
|
69
|
-
var _Component_staticConfig, isInput = (_Component_staticConfig = Component.staticConfig) === null || _Component_staticConfig === void 0 ? void 0 : _Component_staticConfig.isInput, _useFocusable = useFocusable({
|
|
70
|
-
ref,
|
|
71
|
-
props,
|
|
72
|
-
isInput
|
|
73
|
-
}), combinedRef = _useFocusable.ref, onChangeText = _useFocusable.onChangeText, finalProps = isInput ? _object_spread_props(_object_spread({}, props), {
|
|
74
|
-
onChangeText
|
|
75
|
-
}) : props;
|
|
76
|
-
return /* @__PURE__ */ _jsx(Component, _object_spread({
|
|
77
|
-
ref: combinedRef
|
|
78
|
-
}, finalProps));
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
51
|
export {
|
|
82
|
-
focusableInputHOC,
|
|
83
52
|
useFocusable
|
|
84
53
|
};
|
|
85
54
|
//# sourceMappingURL=focusableInputHOC.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/Users/n8/tamagui/code/ui/focusable/src/focusableInputHOC.tsx"],
|
|
4
|
-
"mappings": "
|
|
5
|
-
"names": ["
|
|
4
|
+
"mappings": "AAAA,SAASA,mBAAmB;AAC5B,SAASC,gBAAgB;AAEzB,OAAOC,WAAW;AAElB,SAASC,yBAAyB;;;;;;;;;;;;;;;;;;;;AAS3B,SAASC,aAAa,OAI+C;MAH1EC,UAD2B,MAC3BA,SACAC,QAF2B,MAE3BA,OACAC,MAH2B,MAG3BA,KAEQC,KAA0CF,MAA1CE,IAAIC,eAAsCH,MAAtCG,cAAcC,QAAwBJ,MAAxBI,OAAOC,eAAiBL,MAAjBK,cAC3BC,aAAaV,MAAMW,OAAOH,SAASC,gBAAgB,EAAA,GACnDG,sBAAsBZ,MAAMW,OAAM,GAElCE,WAAWb,MAAMc,YACrB,SAACC,OAAAA;QAGCH;AAFA,IAAKN,MACAS,WACLH,+BAAAA,oBAAoBI,aAAO,QAA3BJ,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA,GACAA,oBAAoBI,UAAUf,kBAAkBK,IAAI,eAAA;MAClDW,OAAOF,MAAME;OAETd,WAAW;;MAEbe,gBAAAA,WAAAA;AACEH,cAAME,MAAK,GACPF,MAAMI,gBAAgB,OAAOT,WAAWM,WAAY,YACtDD,MAAMI,aAAa,GAAGT,WAAWM,QAAQI,MAAM;MAEnD;IACF,CAAA,CAAA;EAEJ,GACA;IAACjB;IAASG;GAAG,GAGTe,eAAevB,YAAYO,KAAKQ,QAAAA;AAEtCb,eAAMsB,UAAU,WAAA;AACd,WAAO,WAAA;UACLV;OAAAA,+BAAAA,oBAAoBI,aAAO,QAA3BJ,iCAAAA,UAAAA,6BAAAA,KAAAA,mBAAAA;IACF;EACF,GAAG,CAAA,CAAE,GAEE;IACLP,KAAKgB;IACLd,cAAcR,SAAS,SAACS,QAAAA;AACtBE,iBAAWM,UAAUR,QACrBD,gBAAAA,QAAAA,aAAeC,MAAAA;IACjB,CAAA;EACF;AACF;",
|
|
5
|
+
"names": ["composeRefs", "useEvent", "React", "registerFocusable", "useFocusable", "isInput", "props", "ref", "id", "onChangeText", "value", "defaultValue", "inputValue", "useRef", "unregisterFocusable", "inputRef", "useCallback", "input", "current", "focus", "focusAndSelect", "setSelection", "length", "combinedRefs", "useEffect"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/focusable",
|
|
3
|
-
"version": "1.110.
|
|
3
|
+
"version": "1.110.5",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@tamagui/compose-refs": "1.110.
|
|
36
|
-
"@tamagui/web": "1.110.
|
|
35
|
+
"@tamagui/compose-refs": "1.110.5",
|
|
36
|
+
"@tamagui/web": "1.110.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@tamagui/build": "1.110.
|
|
39
|
+
"@tamagui/build": "1.110.5",
|
|
40
40
|
"react": "^18.2.0 || ^19.0.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
import { composeRefs } from '@tamagui/compose-refs'
|
|
3
|
-
import type { TamaguiComponent } from '@tamagui/web'
|
|
4
2
|
import { useEvent } from '@tamagui/web'
|
|
5
3
|
import type { MutableRefObject } from 'react'
|
|
4
|
+
import React from 'react'
|
|
6
5
|
|
|
7
6
|
import { registerFocusable } from './registerFocusable'
|
|
8
7
|
|
|
@@ -60,23 +59,3 @@ export function useFocusable({
|
|
|
60
59
|
}),
|
|
61
60
|
}
|
|
62
61
|
}
|
|
63
|
-
|
|
64
|
-
export function focusableInputHOC<A extends TamaguiComponent>(Component: A): A {
|
|
65
|
-
return Component.styleable((props: FocusableProps, ref) => {
|
|
66
|
-
const isInput = Component.staticConfig?.isInput
|
|
67
|
-
const { ref: combinedRef, onChangeText } = useFocusable({
|
|
68
|
-
ref,
|
|
69
|
-
props,
|
|
70
|
-
isInput,
|
|
71
|
-
})
|
|
72
|
-
const finalProps = isInput
|
|
73
|
-
? {
|
|
74
|
-
...props,
|
|
75
|
-
onChangeText,
|
|
76
|
-
}
|
|
77
|
-
: props
|
|
78
|
-
|
|
79
|
-
// @ts-expect-error
|
|
80
|
-
return <Component ref={combinedRef} {...finalProps} />
|
|
81
|
-
}) as any
|
|
82
|
-
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { TamaguiComponent } from '@tamagui/web';
|
|
2
1
|
import type { MutableRefObject } from 'react';
|
|
3
2
|
type FocusableProps = {
|
|
4
3
|
id?: string;
|
|
@@ -14,6 +13,5 @@ export declare function useFocusable({ isInput, props, ref, }: {
|
|
|
14
13
|
ref: (node: any) => void;
|
|
15
14
|
onChangeText: (value: any) => void;
|
|
16
15
|
};
|
|
17
|
-
export declare function focusableInputHOC<A extends TamaguiComponent>(Component: A): A;
|
|
18
16
|
export {};
|
|
19
17
|
//# sourceMappingURL=focusableInputHOC.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusableInputHOC.d.ts","sourceRoot":"","sources":["../src/focusableInputHOC.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"focusableInputHOC.d.ts","sourceRoot":"","sources":["../src/focusableInputHOC.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAA;AAK7C,KAAK,cAAc,GAAG;IACpB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,KAAK,EACL,GAAG,GACJ,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,cAAc,CAAC;IAAC,GAAG,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAA;CAAE;;;EA0C3E"}
|