tamagui 1.95.1 → 1.95.3
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/views/Input.js.map +1 -1
- package/dist/cjs/views/Input.native.js +1 -14
- package/dist/cjs/views/Input.native.js.map +2 -2
- package/dist/esm/views/Input.js.map +1 -1
- package/dist/esm/views/Input.native.js +3 -16
- package/dist/esm/views/Input.native.js.map +2 -2
- package/dist/jsx/views/Input.js.map +1 -1
- package/dist/jsx/views/Input.native.js +3 -16
- package/dist/jsx/views/Input.native.js.map +2 -2
- package/dist/native.js +11 -23
- package/dist/native.js.map +2 -2
- package/dist/test.native.js +11 -23
- package/dist/test.native.js.map +2 -2
- package/package.json +54 -54
- package/src/views/Input.tsx +2 -16
- package/types/views/Input.d.ts.map +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Input.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAsB,+BAEtB,cAAkD,0BAClD,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAsB,+BAEtB,cAAkD,0BAClD,mBAA6B,+BAC7B,sBAA0B,yBAE1B,sBAAiC,oCACjC,eAAuB,kBAwFd;AAtFF,MAAM,gBAAgB;AAAA,EAC3B,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EAEP,GAAI,yBACA;AAAA,IACE,UAAU;AAAA,EACZ,IACA;AAAA,IACE,WAAW;AAAA,EACb;AAAA,EAEJ,aAAa;AAAA,EACb,iBAAiB;AAAA;AAAA,EAGjB,UAAU;AAAA,EAEV,YAAY;AAAA,IACV,aAAa;AAAA,EACf;AAAA,EAEA,YAAY;AAAA,IACV,aAAa;AAAA,EACf;AAAA,EAEA,mBAAmB;AAAA,IACjB,cAAc;AAAA,IACd,cAAc;AAAA,IACd,cAAc;AAAA,EAChB;AACF,GAEa,iBAAa;AAAA,EACxB;AAAA,EACA;AAAA,IACE,MAAM;AAAA,IAEN,UAAU;AAAA,MACR,UAAU;AAAA,QACR,OAAO;AAAA,MACT;AAAA,MAEA,MAAM;AAAA,QACJ,WAAW;AAAA,MACb;AAAA,MAEA,UAAU;AAAA,QACR,MAAM,CAAC;AAAA,MACT;AAAA,IACF;AAAA,IAEA,iBAAiB;AAAA,MACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,IAC7C;AAAA,EACF;AAAA,EACA;AAAA,IACE,SAAS;AAAA,IAET,QAAQ;AAAA,MACN,sBAAsB;AAAA,MACtB,gBAAgB;AAAA,IAClB;AAAA,EACF;AACF,GAca,QAAQ,WAAW,UAA2B,CAAC,SAAS,iBAAiB;AACpF,QAAM,UAAM,qBAAc,IAAI,GACxB,mBAAe,6BAAgB,cAAc,GAAG,GAChD,QAAQ,cAAc,SAAS,YAAY;AAEjD,SAAO,4CAAC,cAAY,GAAG,OAAO;AAChC,CAAC;AAEM,SAAS,cAAc,OAAmB,KAAU;AACzD,QAAM,YAAQ,sBAAS,GACjB,EAAE,cAAc,KAAK,YAAY,QAAI,+BAAa;AAAA;AAAA,IAEtD;AAAA,IACA;AAAA,IACA,SAAS;AAAA,EACX,CAAC,GAEK,uBAAuB,MAAM,sBAC7B,uBACJ,MAAM,oBAA2B,GAAG,IAAI,KACxC,wBACA,MAAM,kBAAkB,IAAI;AAE9B,SAAO;AAAA,IACL,KAAK;AAAA,IACL,UAAU,MAAM;AAAA,IAChB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -106,20 +106,7 @@ var defaultStyles = _object_spread_props(_object_spread({
|
|
|
106
106
|
}
|
|
107
107
|
}), Input = InputFrame.styleable(function(propsIn, forwardedRef) {
|
|
108
108
|
var ref = (0, import_react.useRef)(null), composedRefs = (0, import_core.useComposedRefs)(forwardedRef, ref), props = useInputProps(propsIn, composedRefs);
|
|
109
|
-
return (0,
|
|
110
|
-
if (props.id && !props.disabled)
|
|
111
|
-
return (0, import_focusable.registerFocusable)(props.id, {
|
|
112
|
-
focusAndSelect: function() {
|
|
113
|
-
var _ref_current;
|
|
114
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.focus();
|
|
115
|
-
},
|
|
116
|
-
focus: function() {
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}, [
|
|
120
|
-
props.id,
|
|
121
|
-
props.disabled
|
|
122
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputFrame, _object_spread({}, props));
|
|
109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputFrame, _object_spread({}, props));
|
|
123
110
|
});
|
|
124
111
|
function useInputProps(props, ref) {
|
|
125
112
|
var _theme_placeholderColorProp, _theme_placeholderColor, theme = (0, import_core.useTheme)(), _useFocusable = (0, import_focusable.useFocusable)({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Users/n8/tamagui/packages/tamagui/src/views/Input.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;uDAAA,mBAAsB,+BAEtB,cAAkD,0BAClD,
|
|
5
|
-
"names": ["defaultStyles", "size", "fontFamily", "borderWidth", "outlineWidth", "color", "isWeb", "tabIndex", "focusable", "borderColor", "backgroundColor", "minWidth", "hoverStyle", "focusStyle", "focusVisibleStyle", "outlineColor", "outlineStyle", "InputFrame", "styled", "TextInput", "name", "variants", "unstyled", "false", "inputSizeVariant", "disabled", "true", "defaultVariants", "process", "env", "TAMAGUI_HEADLESS", "isInput", "accept", "placeholderTextColor", "selectionColor", "Input", "styleable", "propsIn", "forwarded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S;EACX,CAAA,GALQkB,eAAmCD,cAAnCC,cAAmBC,cAAgBF,cAArBT,KAOhBY,uBAAuBR,MAAMV,sBAEjCa,iCAAAA,MADIb,wBACJa,QAAAA,mCAAAA,8BAAAA,MAAMK,oBAAAA,OAA4B,QAAlCL,gCAAAA,SAAAA,SAAAA,4BAAoCM,IAAG,OAAA,QAAvCN,oCAAAA,SAAAA,kCACAK,0BAAAA,QADAL,SAAAA,SAAAA,QAEAA,0BAAAA,MAAMO,sBAAgB,QAAtBP,4BAAAA,SAAAA,SAAAA,wBAAwBM,IAAG;AAE7B,SAAO,qBAAA,eAAA;IACLb,KAAKW;IACLI,UAAUX,MAAMlB;KACbkB,KAAAA,GAAAA;IACHV;IACAgB;;AAEJ;",
|
|
5
|
+
"names": ["defaultStyles", "size", "fontFamily", "borderWidth", "outlineWidth", "color", "isWeb", "tabIndex", "focusable", "borderColor", "backgroundColor", "minWidth", "hoverStyle", "focusStyle", "focusVisibleStyle", "outlineColor", "outlineStyle", "InputFrame", "styled", "TextInput", "name", "variants", "unstyled", "false", "inputSizeVariant", "disabled", "true", "defaultVariants", "process", "env", "TAMAGUI_HEADLESS", "isInput", "accept", "placeholderTextColor", "selectionColor", "Input", "styleable", "propsIn", "forwardedRef", "ref", "useRef", "composedRefs", "useComposedRefs", "props", "useInputProps", "_jsx", "theme", "useTheme", "useFocusable", "onChangeText", "combinedRef", "placeholderColorProp", "get", "placeholderColor", "readOnly"]
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Input.tsx"],
|
|
4
|
-
"mappings": "AAAA,SAAS,aAAa;AAEtB,SAAS,QAAQ,iBAAiB,gBAAgB;AAClD,
|
|
4
|
+
"mappings": "AAAA,SAAS,aAAa;AAEtB,SAAS,QAAQ,iBAAiB,gBAAgB;AAClD,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAE1B,SAAS,wBAAwB;A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C,GAEK,uBAAuB,MAAM,sBAC7B,uBACJ,MAAM,oBAA2B,GAAG,IAAI,KACxC,wBACA,MAAM,kBAAkB,IAAI;AAE9B,SAAO;AAAA,IACL,KAAK;AAAA,IACL,UAAU,MAAM;AAAA,IAChB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { isWeb } from "@tamagui/constants";
|
|
3
3
|
import { styled, useComposedRefs, useTheme } from "@tamagui/core";
|
|
4
|
-
import {
|
|
4
|
+
import { useFocusable } from "@tamagui/focusable";
|
|
5
5
|
import { TextInput } from "react-native";
|
|
6
6
|
import { inputSizeVariant } from "../helpers/inputHelpers";
|
|
7
|
-
import {
|
|
7
|
+
import { useRef } from "react";
|
|
8
8
|
function _define_property(obj, key, value) {
|
|
9
9
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
10
10
|
value,
|
|
@@ -89,20 +89,7 @@ var defaultStyles = _object_spread_props(_object_spread({
|
|
|
89
89
|
}
|
|
90
90
|
}), Input = InputFrame.styleable(function(propsIn, forwardedRef) {
|
|
91
91
|
var ref = useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), props = useInputProps(propsIn, composedRefs);
|
|
92
|
-
return
|
|
93
|
-
if (props.id && !props.disabled)
|
|
94
|
-
return registerFocusable(props.id, {
|
|
95
|
-
focusAndSelect: function() {
|
|
96
|
-
var _ref_current;
|
|
97
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.focus();
|
|
98
|
-
},
|
|
99
|
-
focus: function() {
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}, [
|
|
103
|
-
props.id,
|
|
104
|
-
props.disabled
|
|
105
|
-
]), /* @__PURE__ */ _jsx(InputFrame, _object_spread({}, props));
|
|
92
|
+
return /* @__PURE__ */ _jsx(InputFrame, _object_spread({}, props));
|
|
106
93
|
});
|
|
107
94
|
function useInputProps(props, ref) {
|
|
108
95
|
var _theme_placeholderColorProp, _theme_placeholderColor, theme = useTheme(), _useFocusable = useFocusable({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Users/n8/tamagui/packages/tamagui/src/views/Input.tsx"],
|
|
4
|
-
"mappings": ";AAAA,SAASA,aAAa;AAEtB,SAASC,QAAQC,iBAAiBC,gBAAgB;AAClD,SAASC,
|
|
5
|
-
"names": ["isWeb", "styled", "useComposedRefs", "useTheme", "
|
|
4
|
+
"mappings": ";AAAA,SAASA,aAAa;AAEtB,SAASC,QAAQC,iBAAiBC,gBAAgB;AAClD,SAASC,oBAAoB;AAC7B,SAASC,iBAAiB;AAE1B,SAASC,wBAAwB;AACjC,SAASC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhB,IAAMC,gBAAgB,qBAAA,eAAA;EAC3BC,MAAM;EACNC,YAAY;EACZC,aAAa;EACbC,cAAc;EACdC,OAAO;GAEHb,QACA;EACEc,UAAU;AACZ,IACA;EACEC,WAAW;AACb,CAAA,GAAA;EAEJC,aAAa;EACbC,iBAAiB;;EAGjBC,UAAU;EAEVC,YAAY;IACVH,aAAa;EACf;EAEAI,YAAY;IACVJ,aAAa;EACf;EAEAK,mBAAmB;IACjBC,cAAc;IACdV,cAAc;IACdW,cAAc;EAChB;IAGWC,aAAavB,OACxBI,WACA;EACEoB,MAAM;EAENC,UAAU;IACRC,UAAU;MACRC,OAAOpB;IACT;IAEAC,MAAM;MACJ,WAAWH;IACb;IAEAuB,UAAU;MACRC,MAAM,CAAC;IACT;EACF;EAEAC,iBAAiB;IACfJ,UAAUK,QAAQC,IAAIC,qBAAqB;EAC7C;AACF,GACA;EACEC,SAAS;EAETC,QAAQ;IACNC,sBAAsB;IACtBC,gBAAgB;EAClB;AACF,CAAA,GAeWC,QAAQf,WAAWgB,UAA2B,SAACC,SAASC,cAAAA;AACnE,MAAMC,MAAMpC,OAAc,IAAA,GACpBqC,eAAe1C,gBAAgBwC,cAAcC,GAAAA,GAC7CE,QAAQC,cAAcL,SAASG,YAAAA;AAErC,SAAO,qBAACpB,YAAAA,eAAAA,CAAAA,GAAeqB,KAAAA,CAAAA;AACzB,CAAA;AAEO,SAASC,cAAcD,OAAmBF,KAAQ;MAWrDI,6BAEAA,yBAZIA,QAAQ5C,SAAAA,GAC6BC,gBAAAA,aAAa;;IAEtDyC;IACAF;IACAR,SAAS;EACX,CAAA,GALQa,eAAmC5C,cAAnC4C,cAAmBC,cAAgB7C,cAArBuC,KAOhBO,uBAAuBL,MAAMR,sBAEjCU,iCAAAA,MADIV,wBACJU,QAAAA,mCAAAA,8BAAAA,MAAMG,oBAAAA,OAA4B,QAAlCH,gCAAAA,SAAAA,SAAAA,4BAAoCI,IAAG,OAAA,QAAvCJ,oCAAAA,SAAAA,kCACAG,0BAAAA,QADAH,SAAAA,SAAAA,QAEAA,0BAAAA,MAAMK,sBAAgB,QAAtBL,4BAAAA,SAAAA,SAAAA,wBAAwBI,IAAG;AAE7B,SAAO,qBAAA,eAAA;IACLR,KAAKM;IACLI,UAAUR,MAAMhB;KACbgB,KAAAA,GAAAA;IACHR;IACAW;;AAEJ;",
|
|
5
|
+
"names": ["isWeb", "styled", "useComposedRefs", "useTheme", "useFocusable", "TextInput", "inputSizeVariant", "useRef", "defaultStyles", "size", "fontFamily", "borderWidth", "outlineWidth", "color", "tabIndex", "focusable", "borderColor", "backgroundColor", "minWidth", "hoverStyle", "focusStyle", "focusVisibleStyle", "outlineColor", "outlineStyle", "InputFrame", "name", "variants", "unstyled", "false", "disabled", "true", "defaultVariants", "process", "env", "TAMAGUI_HEADLESS", "isInput", "accept", "placeholderTextColor", "selectionColor", "Input", "styleable", "propsIn", "forwardedRef", "ref", "composedRefs", "props", "useInputProps", "theme", "onChangeText", "combinedRef", "placeholderColorProp", "get", "placeholderColor", "readOnly"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WAAW,UAA2B,CAAC,SAAS,iBAAiB;AACpF,QAAM,MAAM,OAAc,IAAI,GACxB,eAAe,gBAAgB,cAAc,GAAG,GAChD,QAAQ,cAAc,SAAS,YAAY;AAEjD,SAAO,oBAAC,cAAY,GAAG,OAAO;AAChC,CAAC;AAEM,SAAS,cAAc,OAAmB,KAAU;AACzD,QAAM,QAAQ,SAAS,GACjB,EAAE,cAAc,KAAK,YAAY,IAAI,aAAa;AAAA;AAAA,IAEtD;AAAA,IACA;AAAA,IACA,SAAS;AAAA,EACX,CAAC,GAEK,uBAAuB,MAAM,sBAC7B,uBACJ,MAAM,oBAA2B,GAAG,IAAI,KACxC,wBACA,MAAM,kBAAkB,IAAI;AAE9B,SAAO;AAAA,IACL,KAAK;AAAA,IACL,UAAU,MAAM;AAAA,IAChB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,EACF;AACF;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { isWeb } from "@tamagui/constants";
|
|
3
3
|
import { styled, useComposedRefs, useTheme } from "@tamagui/core";
|
|
4
|
-
import {
|
|
4
|
+
import { useFocusable } from "@tamagui/focusable";
|
|
5
5
|
import { TextInput } from "react-native";
|
|
6
6
|
import { inputSizeVariant } from "../helpers/inputHelpers";
|
|
7
|
-
import {
|
|
7
|
+
import { useRef } from "react";
|
|
8
8
|
function _define_property(obj, key, value) {
|
|
9
9
|
return key in obj ? Object.defineProperty(obj, key, {
|
|
10
10
|
value,
|
|
@@ -89,20 +89,7 @@ var defaultStyles = _object_spread_props(_object_spread({
|
|
|
89
89
|
}
|
|
90
90
|
}), Input = InputFrame.styleable(function(propsIn, forwardedRef) {
|
|
91
91
|
var ref = useRef(null), composedRefs = useComposedRefs(forwardedRef, ref), props = useInputProps(propsIn, composedRefs);
|
|
92
|
-
return
|
|
93
|
-
if (props.id && !props.disabled)
|
|
94
|
-
return registerFocusable(props.id, {
|
|
95
|
-
focusAndSelect: function() {
|
|
96
|
-
var _ref_current;
|
|
97
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.focus();
|
|
98
|
-
},
|
|
99
|
-
focus: function() {
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}, [
|
|
103
|
-
props.id,
|
|
104
|
-
props.disabled
|
|
105
|
-
]), /* @__PURE__ */ _jsx(InputFrame, _object_spread({}, props));
|
|
92
|
+
return /* @__PURE__ */ _jsx(InputFrame, _object_spread({}, props));
|
|
106
93
|
});
|
|
107
94
|
function useInputProps(props, ref) {
|
|
108
95
|
var _theme_placeholderColorProp, _theme_placeholderColor, theme = useTheme(), _useFocusable = useFocusable({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/views/Users/n8/tamagui/packages/tamagui/src/views/Input.tsx"],
|
|
4
|
-
"mappings": ";AAAA,SAASA,aAAa;AAEtB,SAASC,QAAQC,iBAAiBC,gBAAgB;AAClD,SAASC,
|
|
5
|
-
"names": ["isWeb", "styled", "useComposedRefs", "useTheme", "
|
|
4
|
+
"mappings": ";AAAA,SAASA,aAAa;AAEtB,SAASC,QAAQC,iBAAiBC,gBAAgB;AAClD,SAASC,oBAAoB;AAC7B,SAASC,iBAAiB;AAE1B,SAASC,wBAAwB;AACjC,SAASC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhB,IAAMC,gBAAgB,qBAAA,eAAA;EAC3BC,MAAM;EACNC,YAAY;EACZC,aAAa;EACbC,cAAc;EACdC,OAAO;GAEHb,QACA;EACEc,UAAU;AACZ,IACA;EACEC,WAAW;AACb,CAAA,GAAA;EAEJC,aAAa;EACbC,iBAAiB;;EAGjBC,UAAU;EAEVC,YAAY;IACVH,aAAa;EACf;EAEAI,YAAY;IACVJ,aAAa;EACf;EAEAK,mBAAmB;IACjBC,cAAc;IACdV,cAAc;IACdW,cAAc;EAChB;IAGWC,aAAavB,OACxBI,WACA;EACEoB,MAAM;EAENC,UAAU;IACRC,UAAU;MACRC,OAAOpB;IACT;IAEAC,MAAM;MACJ,WAAWH;IACb;IAEAuB,UAAU;MACRC,MAAM,CAAC;IACT;EACF;EAEAC,iBAAiB;IACfJ,UAAUK,QAAQC,IAAIC,qBAAqB;EAC7C;AACF,GACA;EACEC,SAAS;EAETC,QAAQ;IACNC,sBAAsB;IACtBC,gBAAgB;EAClB;AACF,CAAA,GAeWC,QAAQf,WAAWgB,UAA2B,SAACC,SAASC,cAAAA;AACnE,MAAMC,MAAMpC,OAAc,IAAA,GACpBqC,eAAe1C,gBAAgBwC,cAAcC,GAAAA,GAC7CE,QAAQC,cAAcL,SAASG,YAAAA;AAErC,SAAO,qBAACpB,YAAAA,eAAAA,CAAAA,GAAeqB,KAAAA,CAAAA;AACzB,CAAA;AAEO,SAASC,cAAcD,OAAmBF,KAAQ;MAWrDI,6BAEAA,yBAZIA,QAAQ5C,SAAAA,GAC6BC,gBAAAA,aAAa;;IAEtDyC;IACAF;IACAR,SAAS;EACX,CAAA,GALQa,eAAmC5C,cAAnC4C,cAAmBC,cAAgB7C,cAArBuC,KAOhBO,uBAAuBL,MAAMR,sBAEjCU,iCAAAA,MADIV,wBACJU,QAAAA,mCAAAA,8BAAAA,MAAMG,oBAAAA,OAA4B,QAAlCH,gCAAAA,SAAAA,SAAAA,4BAAoCI,IAAG,OAAA,QAAvCJ,oCAAAA,SAAAA,kCACAG,0BAAAA,QADAH,SAAAA,SAAAA,QAEAA,0BAAAA,MAAMK,sBAAgB,QAAtBL,4BAAAA,SAAAA,SAAAA,wBAAwBI,IAAG;AAE7B,SAAO,qBAAA,eAAA;IACLR,KAAKM;IACLI,UAAUR,MAAMhB;KACbgB,KAAAA,GAAAA;IACHR;IACAW;;AAEJ;",
|
|
5
|
+
"names": ["isWeb", "styled", "useComposedRefs", "useTheme", "useFocusable", "TextInput", "inputSizeVariant", "useRef", "defaultStyles", "size", "fontFamily", "borderWidth", "outlineWidth", "color", "tabIndex", "focusable", "borderColor", "backgroundColor", "minWidth", "hoverStyle", "focusStyle", "focusVisibleStyle", "outlineColor", "outlineStyle", "InputFrame", "name", "variants", "unstyled", "false", "disabled", "true", "defaultVariants", "process", "env", "TAMAGUI_HEADLESS", "isInput", "accept", "placeholderTextColor", "selectionColor", "Input", "styleable", "propsIn", "forwardedRef", "ref", "composedRefs", "props", "useInputProps", "theme", "onChangeText", "combinedRef", "placeholderColorProp", "get", "placeholderColor", "readOnly"]
|
|
6
6
|
}
|
package/dist/native.js
CHANGED
|
@@ -24514,14 +24514,14 @@ var require_registerFocusable_native = __commonJS({
|
|
|
24514
24514
|
return focusFocusable;
|
|
24515
24515
|
},
|
|
24516
24516
|
registerFocusable: function() {
|
|
24517
|
-
return
|
|
24517
|
+
return registerFocusable2;
|
|
24518
24518
|
},
|
|
24519
24519
|
unregisterFocusable: function() {
|
|
24520
24520
|
return unregisterFocusable;
|
|
24521
24521
|
}
|
|
24522
24522
|
});
|
|
24523
24523
|
module2.exports = __toCommonJS2(registerFocusable_native_exports);
|
|
24524
|
-
var InputsMap = /* @__PURE__ */ new Map(),
|
|
24524
|
+
var InputsMap = /* @__PURE__ */ new Map(), registerFocusable2 = function(id, input) {
|
|
24525
24525
|
return process.env.NODE_ENV === "development" && InputsMap.has(id) && console.warn("Warning, duplicate ID for input: ".concat(id)), InputsMap.set(id, input), function() {
|
|
24526
24526
|
InputsMap.delete(id);
|
|
24527
24527
|
};
|
|
@@ -26348,7 +26348,7 @@ var require_use_sync_external_store_shim_native_development = __commonJS({
|
|
|
26348
26348
|
function is(x, y) {
|
|
26349
26349
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
26350
26350
|
}
|
|
26351
|
-
var objectIs = typeof Object.is == "function" ? Object.is : is, useState = React2.useState,
|
|
26351
|
+
var objectIs = typeof Object.is == "function" ? Object.is : is, useState = React2.useState, useEffect2 = React2.useEffect, useLayoutEffect = React2.useLayoutEffect, useDebugValue2 = React2.useDebugValue, didWarnOld18Alpha = !1, didWarnUncachedGetSnapshot = !1;
|
|
26352
26352
|
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
26353
26353
|
didWarnOld18Alpha || React2.startTransition !== void 0 && (didWarnOld18Alpha = !0, error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
26354
26354
|
var value = getSnapshot();
|
|
@@ -26370,7 +26370,7 @@ var require_use_sync_external_store_shim_native_development = __commonJS({
|
|
|
26370
26370
|
subscribe,
|
|
26371
26371
|
value,
|
|
26372
26372
|
getSnapshot
|
|
26373
|
-
]),
|
|
26373
|
+
]), useEffect2(function() {
|
|
26374
26374
|
checkIfSnapshotChanged(inst) && forceUpdate({
|
|
26375
26375
|
inst
|
|
26376
26376
|
});
|
|
@@ -26477,7 +26477,7 @@ var require_with_selector_development = __commonJS({
|
|
|
26477
26477
|
function is(x, y) {
|
|
26478
26478
|
return x === y && (x !== 0 || 1 / x === 1 / y) || x !== x && y !== y;
|
|
26479
26479
|
}
|
|
26480
|
-
var objectIs = typeof Object.is == "function" ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef3 = React2.useRef,
|
|
26480
|
+
var objectIs = typeof Object.is == "function" ? Object.is : is, useSyncExternalStore = shim.useSyncExternalStore, useRef3 = React2.useRef, useEffect2 = React2.useEffect, useMemo = React2.useMemo, useDebugValue2 = React2.useDebugValue;
|
|
26481
26481
|
function useSyncExternalStoreWithSelector2(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
26482
26482
|
var instRef = useRef3(null), inst;
|
|
26483
26483
|
instRef.current === null ? (inst = {
|
|
@@ -26516,7 +26516,7 @@ var require_with_selector_development = __commonJS({
|
|
|
26516
26516
|
selector,
|
|
26517
26517
|
isEqual
|
|
26518
26518
|
]), getSelection = _useMemo[0], getServerSelection = _useMemo[1], value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
26519
|
-
return
|
|
26519
|
+
return useEffect2(function() {
|
|
26520
26520
|
inst.hasValue = !0, inst.value = value;
|
|
26521
26521
|
}, [
|
|
26522
26522
|
value
|
|
@@ -30699,7 +30699,7 @@ var require_Popper_native = __commonJS({
|
|
|
30699
30699
|
strategy,
|
|
30700
30700
|
props
|
|
30701
30701
|
]), _React_useState = _sliced_to_array(React2.useState(!0), 2), needsMeasure = _React_useState[0], setNeedsMeasure = _React_useState[1];
|
|
30702
|
-
|
|
30702
|
+
React2.useEffect(function() {
|
|
30703
30703
|
(x || y) && setNeedsMeasure(!1);
|
|
30704
30704
|
}, [
|
|
30705
30705
|
x,
|
|
@@ -30708,8 +30708,7 @@ var require_Popper_native = __commonJS({
|
|
|
30708
30708
|
isMounted && update();
|
|
30709
30709
|
}, [
|
|
30710
30710
|
isMounted
|
|
30711
|
-
])
|
|
30712
|
-
return null;
|
|
30711
|
+
]);
|
|
30713
30712
|
var show = !0, setShow = void 0;
|
|
30714
30713
|
if (import_constants4.isAndroid) {
|
|
30715
30714
|
var ref;
|
|
@@ -30721,6 +30720,8 @@ var require_Popper_native = __commonJS({
|
|
|
30721
30720
|
y
|
|
30722
30721
|
]);
|
|
30723
30722
|
}
|
|
30723
|
+
if (!isMounted)
|
|
30724
|
+
return null;
|
|
30724
30725
|
var frameProps = _object_spread9({
|
|
30725
30726
|
ref: contentRefs,
|
|
30726
30727
|
x: x || 0,
|
|
@@ -38986,20 +38987,7 @@ var defaultStyles = _object_spread_props6(_object_spread6({
|
|
|
38986
38987
|
}
|
|
38987
38988
|
}), Input = InputFrame.styleable(function(propsIn, forwardedRef) {
|
|
38988
38989
|
var ref = (0, import_react2.useRef)(null), composedRefs = (0, import_core7.useComposedRefs)(forwardedRef, ref), props = useInputProps(propsIn, composedRefs);
|
|
38989
|
-
return (0,
|
|
38990
|
-
if (props.id && !props.disabled)
|
|
38991
|
-
return (0, import_focusable.registerFocusable)(props.id, {
|
|
38992
|
-
focusAndSelect: function() {
|
|
38993
|
-
var _ref_current;
|
|
38994
|
-
(_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.focus();
|
|
38995
|
-
},
|
|
38996
|
-
focus: function() {
|
|
38997
|
-
}
|
|
38998
|
-
});
|
|
38999
|
-
}, [
|
|
39000
|
-
props.id,
|
|
39001
|
-
props.disabled
|
|
39002
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InputFrame, _object_spread6({}, props));
|
|
38990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(InputFrame, _object_spread6({}, props));
|
|
39003
38991
|
});
|
|
39004
38992
|
function useInputProps(props, ref) {
|
|
39005
38993
|
var _theme_placeholderColorProp, _theme_placeholderColor, theme = (0, import_core7.useTheme)(), _useFocusable = (0, import_focusable.useFocusable)({
|