@tamagui/input 2.0.0-rc.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/cjs/Input.cjs +165 -153
  2. package/dist/cjs/Input.native.js +255 -257
  3. package/dist/cjs/Input.native.js.map +1 -1
  4. package/dist/cjs/InputNativeProps.cjs +7 -5
  5. package/dist/cjs/InputNativeProps.native.js +7 -5
  6. package/dist/cjs/InputNativeProps.native.js.map +1 -1
  7. package/dist/cjs/TextArea.cjs +15 -13
  8. package/dist/cjs/TextArea.native.js +34 -32
  9. package/dist/cjs/TextArea.native.js.map +1 -1
  10. package/dist/cjs/index.cjs +13 -11
  11. package/dist/cjs/index.native.js +13 -11
  12. package/dist/cjs/index.native.js.map +1 -1
  13. package/dist/cjs/inputTypes.test-d.cjs +125 -0
  14. package/dist/cjs/inputTypes.test-d.native.js +128 -0
  15. package/dist/cjs/inputTypes.test-d.native.js.map +1 -0
  16. package/dist/cjs/shared.cjs +119 -101
  17. package/dist/cjs/shared.native.js +125 -107
  18. package/dist/cjs/shared.native.js.map +1 -1
  19. package/dist/cjs/types.cjs +7 -5
  20. package/dist/cjs/types.native.js +7 -5
  21. package/dist/cjs/types.native.js.map +1 -1
  22. package/dist/cjs/v1/Input.cjs +177 -170
  23. package/dist/cjs/v1/Input.native.js +154 -112
  24. package/dist/cjs/v1/Input.native.js.map +1 -1
  25. package/dist/cjs/v1/TextArea.cjs +15 -13
  26. package/dist/cjs/v1/TextArea.native.js +34 -32
  27. package/dist/cjs/v1/TextArea.native.js.map +1 -1
  28. package/dist/cjs/v1/index.cjs +7 -5
  29. package/dist/cjs/v1/index.native.js +7 -5
  30. package/dist/cjs/v1/index.native.js.map +1 -1
  31. package/dist/cjs/v1/types.cjs +7 -5
  32. package/dist/cjs/v1/types.native.js +7 -5
  33. package/dist/cjs/v1/types.native.js.map +1 -1
  34. package/dist/esm/Input.mjs +134 -124
  35. package/dist/esm/Input.mjs.map +1 -1
  36. package/dist/esm/Input.native.js +225 -229
  37. package/dist/esm/Input.native.js.map +1 -1
  38. package/dist/esm/TextArea.mjs.map +1 -1
  39. package/dist/esm/TextArea.native.js.map +1 -1
  40. package/dist/esm/index.js +4 -7
  41. package/dist/esm/index.js.map +1 -6
  42. package/dist/esm/inputTypes.test-d.mjs +126 -0
  43. package/dist/esm/inputTypes.test-d.mjs.map +1 -0
  44. package/dist/esm/inputTypes.test-d.native.js +126 -0
  45. package/dist/esm/inputTypes.test-d.native.js.map +1 -0
  46. package/dist/esm/shared.mjs +102 -86
  47. package/dist/esm/shared.mjs.map +1 -1
  48. package/dist/esm/shared.native.js +107 -91
  49. package/dist/esm/shared.native.js.map +1 -1
  50. package/dist/esm/v1/Input.mjs +146 -141
  51. package/dist/esm/v1/Input.mjs.map +1 -1
  52. package/dist/esm/v1/Input.native.js +123 -83
  53. package/dist/esm/v1/Input.native.js.map +1 -1
  54. package/dist/jsx/Input.mjs +134 -124
  55. package/dist/jsx/Input.mjs.map +1 -1
  56. package/dist/jsx/Input.native.js +255 -257
  57. package/dist/jsx/Input.native.js.map +1 -1
  58. package/dist/jsx/InputNativeProps.native.js +7 -5
  59. package/dist/jsx/TextArea.mjs.map +1 -1
  60. package/dist/jsx/TextArea.native.js +34 -32
  61. package/dist/jsx/TextArea.native.js.map +1 -1
  62. package/dist/jsx/index.js +4 -7
  63. package/dist/jsx/index.js.map +1 -6
  64. package/dist/jsx/index.native.js +13 -11
  65. package/dist/jsx/inputTypes.test-d.mjs +126 -0
  66. package/dist/jsx/inputTypes.test-d.mjs.map +1 -0
  67. package/dist/jsx/inputTypes.test-d.native.js +128 -0
  68. package/dist/jsx/inputTypes.test-d.native.js.map +1 -0
  69. package/dist/jsx/shared.mjs +102 -86
  70. package/dist/jsx/shared.mjs.map +1 -1
  71. package/dist/jsx/shared.native.js +125 -107
  72. package/dist/jsx/shared.native.js.map +1 -1
  73. package/dist/jsx/types.native.js +7 -5
  74. package/dist/jsx/v1/Input.mjs +146 -141
  75. package/dist/jsx/v1/Input.mjs.map +1 -1
  76. package/dist/jsx/v1/Input.native.js +154 -112
  77. package/dist/jsx/v1/Input.native.js.map +1 -1
  78. package/dist/jsx/v1/TextArea.native.js +34 -32
  79. package/dist/jsx/v1/TextArea.native.js.map +1 -1
  80. package/dist/jsx/v1/index.native.js +7 -5
  81. package/dist/jsx/v1/types.native.js +7 -5
  82. package/package.json +21 -24
  83. package/src/Input.native.tsx +3 -30
  84. package/src/Input.tsx +7 -5
  85. package/src/TextArea.tsx +3 -3
  86. package/src/index.ts +1 -1
  87. package/src/inputTypes.test-d.ts +237 -0
  88. package/src/shared.tsx +9 -0
  89. package/src/types.ts +24 -14
  90. package/src/v1/Input.tsx +4 -4
  91. package/types/Input.d.ts +17 -6
  92. package/types/Input.d.ts.map +1 -1
  93. package/types/Input.native.d.ts +15 -6
  94. package/types/Input.native.d.ts.map +1 -1
  95. package/types/TextArea.d.ts +11 -4
  96. package/types/TextArea.d.ts.map +1 -1
  97. package/types/index.d.ts +1 -1
  98. package/types/index.d.ts.map +1 -1
  99. package/types/shared.d.ts +8 -0
  100. package/types/shared.d.ts.map +1 -1
  101. package/types/types.d.ts +14 -4
  102. package/types/types.d.ts.map +1 -1
  103. package/types/v1/Input.d.ts +15 -6
  104. package/types/v1/Input.d.ts.map +1 -1
  105. package/types/v1/Input.native.d.ts +15 -6
  106. package/types/v1/Input.native.d.ts.map +1 -1
  107. package/types/v1/TextArea.d.ts +9 -3
  108. package/types/v1/TextArea.d.ts.map +1 -1
  109. package/dist/cjs/Input.js +0 -143
  110. package/dist/cjs/Input.js.map +0 -6
  111. package/dist/cjs/InputNativeProps.js +0 -14
  112. package/dist/cjs/InputNativeProps.js.map +0 -6
  113. package/dist/cjs/TextArea.js +0 -43
  114. package/dist/cjs/TextArea.js.map +0 -6
  115. package/dist/cjs/index.js +0 -24
  116. package/dist/cjs/index.js.map +0 -6
  117. package/dist/cjs/shared.js +0 -108
  118. package/dist/cjs/shared.js.map +0 -6
  119. package/dist/cjs/types.js +0 -14
  120. package/dist/cjs/types.js.map +0 -6
  121. package/dist/cjs/v1/Input.js +0 -171
  122. package/dist/cjs/v1/Input.js.map +0 -6
  123. package/dist/cjs/v1/TextArea.js +0 -43
  124. package/dist/cjs/v1/TextArea.js.map +0 -6
  125. package/dist/cjs/v1/index.js +0 -16
  126. package/dist/cjs/v1/index.js.map +0 -6
  127. package/dist/cjs/v1/types.js +0 -14
  128. package/dist/cjs/v1/types.js.map +0 -6
  129. package/dist/esm/Input.js +0 -124
  130. package/dist/esm/Input.js.map +0 -6
  131. package/dist/esm/InputNativeProps.js +0 -1
  132. package/dist/esm/InputNativeProps.js.map +0 -6
  133. package/dist/esm/TextArea.js +0 -29
  134. package/dist/esm/TextArea.js.map +0 -6
  135. package/dist/esm/shared.js +0 -96
  136. package/dist/esm/shared.js.map +0 -6
  137. package/dist/esm/types.js +0 -1
  138. package/dist/esm/types.js.map +0 -6
  139. package/dist/esm/v1/Input.js +0 -152
  140. package/dist/esm/v1/Input.js.map +0 -6
  141. package/dist/esm/v1/TextArea.js +0 -29
  142. package/dist/esm/v1/TextArea.js.map +0 -6
  143. package/dist/esm/v1/index.js +0 -3
  144. package/dist/esm/v1/index.js.map +0 -6
  145. package/dist/esm/v1/types.js +0 -1
  146. package/dist/esm/v1/types.js.map +0 -6
  147. package/dist/jsx/Input.js +0 -124
  148. package/dist/jsx/Input.js.map +0 -6
  149. package/dist/jsx/InputNativeProps.js +0 -1
  150. package/dist/jsx/InputNativeProps.js.map +0 -6
  151. package/dist/jsx/TextArea.js +0 -29
  152. package/dist/jsx/TextArea.js.map +0 -6
  153. package/dist/jsx/shared.js +0 -96
  154. package/dist/jsx/shared.js.map +0 -6
  155. package/dist/jsx/types.js +0 -1
  156. package/dist/jsx/types.js.map +0 -6
  157. package/dist/jsx/v1/Input.js +0 -152
  158. package/dist/jsx/v1/Input.js.map +0 -6
  159. package/dist/jsx/v1/TextArea.js +0 -29
  160. package/dist/jsx/v1/TextArea.js.map +0 -6
  161. package/dist/jsx/v1/index.js +0 -3
  162. package/dist/jsx/v1/index.js.map +0 -6
  163. package/dist/jsx/v1/types.js +0 -1
  164. package/dist/jsx/v1/types.js.map +0 -6
@@ -4,138 +4,180 @@ var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf,
8
- __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __export = (target, all) => {
10
- for (var name in all) __defProp(target, name, {
11
- get: all[name],
12
- enumerable: !0
13
- });
14
- },
15
- __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
10
+ for (var name in all) __defProp(target, name, {
11
+ get: all[name],
12
+ enumerable: true
13
+ });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
18
  get: () => from[key],
18
19
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
20
  });
20
- return to;
21
- };
21
+ }
22
+ return to;
23
+ };
22
24
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: !0
30
- }) : target, mod)),
31
- __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: !0
33
- }), mod);
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
30
+ value: mod,
31
+ enumerable: true
32
+ }) : target, mod));
33
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
34
+ value: true
35
+ }), mod);
34
36
  var Input_native_exports = {};
35
37
  __export(Input_native_exports, {
36
38
  Input: () => Input
37
39
  });
38
40
  module.exports = __toCommonJS(Input_native_exports);
39
- var import_jsx_runtime = require("react/jsx-runtime"),
40
- import_react = __toESM(require("react"), 1),
41
- import_core = require("@tamagui/core"),
42
- import_focusable = require("@tamagui/focusable"),
43
- import_element = require("@tamagui/element"),
44
- import_react_native = require("react-native"),
45
- import_shared = require("../shared.native.js"),
46
- StyledInput = (0, import_core.styled)(import_react_native.TextInput, import_shared.styledBody[0], import_shared.styledBody[1]),
47
- Input = StyledInput.styleable(function (inProps, forwardedRef) {
48
- var {
49
- // some of destructed props are just to avoid passing them to ...rest because they are not in native.
50
- type,
51
- //@ts-ignore
52
- dirname,
53
- max,
54
- min,
55
- minLength,
56
- multiple,
57
- name,
58
- required,
59
- step,
60
- disabled,
61
- id,
62
- // @ts-ignore
63
- caretColor,
64
- onChange,
65
- onInput,
66
- rows,
67
- enterKeyHint,
68
- returnKeyType,
69
- onKeyDown,
70
- inputMode,
71
- render,
72
- ...rest
73
- } = inProps,
74
- {
75
- ref,
76
- composedRef
77
- } = (0, import_element.useNativeInputRef)(forwardedRef),
78
- secureTextEntry = !1,
79
- cursorColor = caretColor,
80
- _returnKeyType = returnKeyType,
81
- _enterKeyHint = enterKeyHint;
82
- enterKeyHint === "go" && (_returnKeyType = "go", _enterKeyHint = void 0);
83
- var _inputMode = inputMode;
84
- type === "email" ? _inputMode = "email" : type === "tel" ? _inputMode = "tel" : type === "search" ? _inputMode = "search" : type === "url" ? _inputMode = "url" : type === "password" ? (secureTextEntry = !0, _inputMode = "text") : type === "number" ? _inputMode = "numeric" : _inputMode = "text";
85
- var showSoftInputOnFocus = !0;
86
- inputMode === "none" && (showSoftInputOnFocus = !1);
87
- var finalProps = {
88
- ...rest,
89
- inputMode: _inputMode,
90
- showSoftInputOnFocus,
91
- disabled,
92
- id,
93
- cursorColor,
94
- enterKeyHint: _enterKeyHint,
95
- returnKeyType: _returnKeyType,
96
- secureTextEntry,
97
- numberOfLines: rows || rest.numberOfLines
98
- };
99
- return render === "textarea" && (finalProps.multiline = !0), onKeyDown && (finalProps.onKeyPress = function (e) {
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var import_react = __toESM(require("react"), 1);
43
+ var import_core = require("@tamagui/core");
44
+ var import_focusable = require("@tamagui/focusable");
45
+ var import_element = require("@tamagui/element");
46
+ var import_react_native = require("react-native");
47
+ var import_shared = require("../shared.native.js");
48
+ var StyledInput = (0, import_core.styled)(import_react_native.TextInput, import_shared.styledBody[0], import_shared.styledBody[1]);
49
+ var Input = StyledInput.styleable(function (inProps, forwardedRef) {
50
+ var {
51
+ // some of destructed props are just to avoid passing them to ...rest because they are not in native.
52
+ type,
53
+ //@ts-ignore
54
+ dirname,
55
+ max,
56
+ min,
57
+ minLength,
58
+ multiple,
59
+ name,
60
+ required,
61
+ step,
62
+ disabled,
63
+ id,
64
+ // @ts-ignore
65
+ caretColor,
66
+ onChange,
67
+ onInput,
68
+ rows,
69
+ enterKeyHint,
70
+ returnKeyType,
71
+ onKeyDown,
72
+ inputMode,
73
+ render,
74
+ ...rest
75
+ } = inProps;
76
+ var {
77
+ ref,
78
+ composedRef
79
+ } = (0, import_element.useNativeInputRef)(forwardedRef);
80
+ var secureTextEntry = false;
81
+ var cursorColor = caretColor;
82
+ var _returnKeyType = returnKeyType;
83
+ var _enterKeyHint = enterKeyHint;
84
+ if (enterKeyHint === "go") {
85
+ _returnKeyType = "go";
86
+ _enterKeyHint = void 0;
87
+ }
88
+ var _inputMode = inputMode;
89
+ if (type === "email") {
90
+ _inputMode = "email";
91
+ } else if (type === "tel") {
92
+ _inputMode = "tel";
93
+ } else if (type === "search") {
94
+ _inputMode = "search";
95
+ } else if (type === "url") {
96
+ _inputMode = "url";
97
+ } else if (type === "password") {
98
+ secureTextEntry = true;
99
+ _inputMode = "text";
100
+ } else if (type === "number") {
101
+ _inputMode = "numeric";
102
+ } else {
103
+ _inputMode = "text";
104
+ }
105
+ var showSoftInputOnFocus = true;
106
+ if (inputMode === "none") {
107
+ showSoftInputOnFocus = false;
108
+ }
109
+ var finalProps = {
110
+ ...rest,
111
+ inputMode: _inputMode,
112
+ showSoftInputOnFocus,
113
+ disabled,
114
+ id,
115
+ cursorColor,
116
+ enterKeyHint: _enterKeyHint,
117
+ returnKeyType: _returnKeyType,
118
+ secureTextEntry,
119
+ numberOfLines: rows || rest.numberOfLines
120
+ };
121
+ if (render === "textarea") {
122
+ finalProps.multiline = true;
123
+ }
124
+ if (onKeyDown) {
125
+ finalProps.onKeyPress = function (e) {
100
126
  var {
101
127
  key
102
128
  } = e.nativeEvent;
103
- (key === "Backspace" || render === "textarea" && key === "Enter" || key.length === 1) && onKeyDown({
104
- key,
105
- type: "keydown"
106
- });
107
- }, finalProps.onSubmitEditing = function (e) {
129
+ if (key === "Backspace" || render === "textarea" && key === "Enter" || key.length === 1) {
130
+ onKeyDown({
131
+ key,
132
+ type: "keydown"
133
+ });
134
+ }
135
+ };
136
+ finalProps.onSubmitEditing = function (e) {
108
137
  onKeyDown({
109
138
  key: "Enter",
110
139
  type: "keydown"
111
140
  });
112
- }), (onChange || onInput) && (finalProps.onChange = function (e) {
141
+ };
142
+ }
143
+ if (onChange || onInput) {
144
+ finalProps.onChange = function (e) {
113
145
  var {
114
146
  text
115
147
  } = e.nativeEvent;
116
- onChange && onChange({
117
- target: {
118
- value: text
119
- },
120
- type: "change"
121
- }), onInput?.({
122
- target: {
123
- value: text
124
- },
125
- type: "input"
126
- });
127
- }), import_react.default.useEffect(function () {
128
- if (id && !disabled) return (0, import_focusable.registerFocusable)(id, {
129
- focusAndSelect: function () {
130
- var _ref_current;
131
- (_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.focus();
132
- },
133
- focus: function () {}
134
- });
135
- }, [id, disabled]), /* @__PURE__ */(0, import_jsx_runtime.jsx)(StyledInput, {
136
- onChange: function (e) {},
137
- ref: composedRef,
138
- ...finalProps
148
+ if (onChange) {
149
+ onChange({
150
+ target: {
151
+ value: text
152
+ },
153
+ type: "change"
154
+ });
155
+ }
156
+ if (onInput != null) {
157
+ onInput({
158
+ target: {
159
+ value: text
160
+ },
161
+ type: "input"
162
+ });
163
+ }
164
+ };
165
+ }
166
+ import_react.default.useEffect(function () {
167
+ if (!id) return;
168
+ if (disabled) return;
169
+ return (0, import_focusable.registerFocusable)(id, {
170
+ focusAndSelect: function () {
171
+ var _ref_current;
172
+ (_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.focus();
173
+ },
174
+ focus: function () {}
139
175
  });
176
+ }, [id, disabled]);
177
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(StyledInput, {
178
+ onChange: function (e) {},
179
+ ref: composedRef,
180
+ ...finalProps
140
181
  });
182
+ });
141
183
  //# sourceMappingURL=Input.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Input_native_exports","__export","Input","module","exports","__toCommonJS","import_jsx_runtime","require","import_react","__toESM","import_core","import_focusable","import_element","import_react_native","import_shared","StyledInput","styled","TextInput","styledBody","styleable","inProps","forwardedRef","type","dirname","max","min","minLength","multiple","name","required","step","disabled","id","caretColor","onChange","onInput","rows","enterKeyHint","returnKeyType","onKeyDown","inputMode","render","rest","ref","composedRef","useNativeInputRef","secureTextEntry","cursorColor","_returnKeyType","_enterKeyHint","_inputMode","showSoftInputOnFocus","finalProps","numberOfLines","multiline","onKeyPress","e","key","nativeEvent","length","onSubmitEditing","text","target","value","default","useEffect","registerFocusable","focusAndSelect","_ref_current","current","focus","jsx"],"sources":["../../../src/v1/Input.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,oBAAA;AAAA,IAAAM,kBAAA,GAA4BC,OAAA;EAC5BC,YAAA,GAAkBC,OAAA,CAAAF,OAAA;EAClBG,WAAA,GAAuBH,OAAA;EACvBI,gBAAA,GAAkCJ,OAAA;EAClCK,cAAA,GAAkCL,OAAA;EAClCM,mBAAA,GAA0BN,OAAA;EAC1BO,aAAA,GAA2BP,OAAA;EACvBQ,WAAA,OAAcL,WAAA,CAAAM,MAAA,EAAOH,mBAAA,CAAAI,SAAA,EAAWH,aAAA,CAAAI,UAAA,CAAW,CAAC,GAAGJ,aAAA,CAAAI,UAAA,CAAW,CAAC,CAAC;EAGjDhB,KAAA,GAAQa,WAAA,CAAYI,SAAA,CAAU,UAASC,OAAA,EAASC,YAAA,EAAc;IACzE,IAAI;QAAA;QACJC,IAAA;QAAA;QACAC,OAAA;QAASC,GAAA;QAAKC,GAAA;QAAKC,SAAA;QAAWC,QAAA;QAAUC,IAAA;QAAMC,QAAA;QAAUC,IAAA;QAAMC,QAAA;QAAUC,EAAA;QAAA;QACxEC,UAAA;QAAYC,QAAA;QAAUC,OAAA;QAASC,IAAA;QAAMC,YAAA;QAAcC,aAAA;QAAeC,SAAA;QAAWC,SAAA;QAAWC,MAAA;QAAQ,GAAGC;MAAK,IAAItB,OAAA;MACxG;QAAEuB,GAAA;QAAKC;MAAY,QAAIhC,cAAA,CAAAiC,iBAAA,EAAkBxB,YAAY;MAErDyB,eAAA,GAAkB;MAClBC,WAAA,GAAcd,UAAA;MACde,cAAA,GAAiBV,aAAA;MACjBW,aAAA,GAAgBZ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B,IAAI;QAAEK;MAAK,IAAIL,CAAA,CAAEE,WAAA;MACbxB,QAAA,IACAA,QAAA,CAAS;QACL4B,MAAA,EAAQ;UACJC,KAAA,EAAOF;QACX;QACAvC,IAAA,EAAM;MACV,CAAC,GAGDa,OAAA,GAAQ;QACJ2B,MAAA,EAAQ;UACJC,KAAA,EAAOF;QACX;QACAvC,IAAA,EAAM;MACV,CAAC;IAET,IAEJd,YAAA,CAAAwD,OAAA,CAAMC,SAAA,CAAU,YAAW;MACvB,IAAKjC,EAAA,IACD,CAAAD,QAAA,EACJ,WAAOpB,gBAAA,CAAAuD,iBAAA,EAAkBlC,EAAA,EAAI;QACzBmC,cAAA,EAAgB,SAAAA,CAAA,EAAW;UACvB,IAAIC,YAAA;UACJ,CAACA,YAAA,GAAezB,GAAA,CAAI0B,OAAA,MAAa,QAAQD,YAAA,KAAiB,UAAkBA,YAAA,CAAaE,KAAA,CAAM;QACnG;QACAA,KAAA,EAAO,SAAAA,CAAA,EAAW,CAAC;MACvB,CAAC;IACL,GAAG,CACCtC,EAAA,EACAD,QAAA,CACH,GACoB,mBAAAzB,kBAAA,CAAAiE,GAAA,EAAKxD,WAAA,EAAa;MACnCmB,QAAA,EAAU,SAAAA,CAASsB,CAAA,EAAG,CAAC;MACvBb,GAAA,EAAKC,WAAA;MACL,GAAGQ;IACP,CAAC;EACL,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["Input_native_exports","__export","Input","module","exports","__toCommonJS","import_jsx_runtime","require","import_react","__toESM","import_core","import_focusable","import_element","import_react_native","import_shared","StyledInput","styled","TextInput","styledBody","styleable","inProps","forwardedRef","type","dirname","max","min","minLength","multiple","name","required","step","disabled","id","caretColor","onChange","onInput","rows","enterKeyHint","returnKeyType","onKeyDown","inputMode","render","rest","ref","composedRef","useNativeInputRef","secureTextEntry","cursorColor","_returnKeyType","_enterKeyHint","_inputMode","showSoftInputOnFocus","finalProps","numberOfLines","multiline","onKeyPress","e","key","nativeEvent","length","onSubmitEditing","text","target","value","default","useEffect","registerFocusable","focusAndSelect","_ref_current","current","focus","jsx"],"sources":["../../../src/v1/Input.native.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA;AAAAC,QAAA,CAAAD,oBAAA;EAAAE,KAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAC,YAAA,CAAAL,oBAAA;AAAA,IAAAM,kBAAA,GAA4BC,OAAA;AAC5B,IAAAC,YAAA,GAAkBC,OAAA,CAAAF,OAAA;AAClB,IAAAG,WAAA,GAAuBH,OAAA;AACvB,IAAAI,gBAAA,GAAkCJ,OAAA;AAClC,IAAAK,cAAA,GAAkCL,OAAA;AAClC,IAAAM,mBAAA,GAA0BN,OAAA;AAC1B,IAAAO,aAAA,GAA2BP,OAAA;AAC3B,IAAIQ,WAAA,OAAcL,WAAA,CAAAM,MAAA,EAAOH,mBAAA,CAAAI,SAAA,EAAWH,aAAA,CAAAI,UAAA,CAAW,CAAC,GAAGJ,aAAA,CAAAI,UAAA,CAAW,CAAC,CAAC;AAGrD,IAAIhB,KAAA,GAAQa,WAAA,CAAYI,SAAA,CAAU,UAASC,OAAA,EAASC,YAAA,EAAc;EACzE,IAAI;IAAA;IACJC,IAAA;IAAA;IACAC,OAAA;IAASC,GAAA;IAAKC,GAAA;IAAKC,SAAA;IAAWC,QAAA;IAAUC,IAAA;IAAMC,QAAA;IAAUC,IAAA;IAAMC,QAAA;IAAUC,EAAA;IAAA;IACxEC,UAAA;IAAYC,QAAA;IAAUC,OAAA;IAASC,IAAA;IAAMC,YAAA;IAAcC,aAAA;IAAeC,SAAA;IAAWC,SAAA;IAAWC,MAAA;IAAQ,GAAGC;EAAK,IAAItB,OAAA;EAC5G,IAAI;IAAEuB,GAAA;IAAKC;EAAY,QAAIhC,cAAA,CAAAiC,iBAAA,EAAkBxB,YAAY;EAEzD,IAAIyB,eAAA,GAAkB;EACtB,IAA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 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var TextArea_exports = {};
22
24
  __export(TextArea_exports, {
23
25
  TextArea: () => TextArea
24
26
  });
25
27
  module.exports = __toCommonJS(TextArea_exports);
26
- var import_web = require("@tamagui/web"),
27
- import_Input = require("./Input.cjs"),
28
- import_shared = require("../shared.cjs");
28
+ var import_web = require("@tamagui/web");
29
+ var import_Input = require("./Input.cjs");
30
+ var import_shared = require("../shared.cjs");
29
31
  const TextArea = (0, import_web.styled)(import_Input.Input, {
30
32
  name: "TextArea",
31
33
  render: "textarea",
@@ -5,49 +5,51 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var TextArea_exports = {};
24
26
  __export(TextArea_exports, {
25
27
  TextArea: () => TextArea
26
28
  });
27
29
  module.exports = __toCommonJS(TextArea_exports);
28
- var import_web = require("@tamagui/web"),
29
- import_Input = require("./Input.native.js"),
30
- import_shared = require("../shared.native.js"),
31
- TextArea = (0, import_web.styled)(import_Input.Input, {
32
- name: "TextArea",
33
- render: "textarea",
34
- // this attribute fixes firefox newline issue
35
- // @ts-ignore
36
- whiteSpace: "pre-wrap",
37
- variants: {
38
- unstyled: {
39
- false: {
40
- height: "auto",
41
- ...import_shared.defaultStyles,
42
- numberOfLines: 3
43
- }
44
- },
45
- size: {
46
- "...size": import_shared.textAreaSizeVariant
30
+ var import_web = require("@tamagui/web");
31
+ var import_Input = require("./Input.native.js");
32
+ var import_shared = require("../shared.native.js");
33
+ var TextArea = (0, import_web.styled)(import_Input.Input, {
34
+ name: "TextArea",
35
+ render: "textarea",
36
+ // this attribute fixes firefox newline issue
37
+ // @ts-ignore
38
+ whiteSpace: "pre-wrap",
39
+ variants: {
40
+ unstyled: {
41
+ false: {
42
+ height: "auto",
43
+ ...import_shared.defaultStyles,
44
+ numberOfLines: 3
47
45
  }
48
46
  },
49
- defaultVariants: {
50
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
47
+ size: {
48
+ "...size": import_shared.textAreaSizeVariant
51
49
  }
52
- });
50
+ },
51
+ defaultVariants: {
52
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
53
+ }
54
+ });
53
55
  //# sourceMappingURL=TextArea.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","TextArea_exports","__export","TextArea","module","exports","import_web","require","import_Input","import_shared","styled","Input","name","render","whiteSpace","variants","unstyled","false","height","defaultStyles","numberOfLines","size","textAreaSizeVariant","defaultVariants","process","env","TAMAGUI_HEADLESS"],"sources":["../../../src/v1/TextArea.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAuBT,YAAA,CAAAK,gBACvB;AAQO,IAAAK,UAAM,GAAAC,OAAW,gBAAO;EAAAC,YAAA,GAAAD,OAAO;EAAAE,aAAA,GAAAF,OAAA;EAAAJ,QAAA,OAAAG,UAAA,CAAAI,MAAA,EAAAF,YAAA,CAAAG,KAAA;IACpCC,IAAA,EAAM;IACNC,MAAA,EAAQ;IAAA;IAAA;IAIRC,UAAA,EAAY;IAEZC,QAAA,EAAU;MACRC,QAAA,EAAU;QACRC,KAAA,EAAO;UACLC,MAAA,EAAQ;UACR,GAAGT,aAAA,CAAAU,aAAA;UACHC,aAAA,EAAe;QACjB;MACF;MAEAC,IAAA,EAAM;QACJ,WAAWZ,aAAA,CAAAa;MACb;IACF;IAEAC,eAAA,EAAiB;MACfP,QAAA,EAAUQ,OAAA,CAAQC,GAAA,CAAIC,gBAAA,KAAqB;IAC7C;EACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","TextArea_exports","__export","TextArea","module","exports","import_web","require","import_Input","import_shared","styled","Input","name","render","whiteSpace","variants","unstyled","false","height","defaultStyles","numberOfLines","size","textAreaSizeVariant","defaultVariants","process","env","TAMAGUI_HEADLESS"],"sources":["../../../src/v1/TextArea.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,gBAAA;AAAAC,QAAA,CAAAD,gBAAA;EAAAE,QAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAuBT,YAAA,CAAAK,gBAAA;AACvB,IAAAK,UAAA,GAAAC,OAAsB;AACtB,IAAAC,YAAA,GAAAD,OAAmD;AAO5C,IAAAE,aAAM,GAAAF,OAAW,uBAAO;AAAO,IACpCJ,QAAM,OAAAG,UAAA,CAAAI,MAAA,EAAAF,YAAA,CAAAG,KAAA;EACNC,IAAA,YAAQ;EAAAC,MAAA;EAAA;EAIR;EAEAC,UAAU;EAAAC,QACR;IAAUC,QACR,EAAO;MAAAC,KACL;QACAC,MAAG;QACH,GAAAT,aAAe,CAAAU,aAAA;QACjBC,aAAA;MACF;IAEA;IAAMC,IACJ;MACF,WAAAZ,aAAA,CAAAa;IACF;EAEA;EAAiBC,eACL;IACZP,QAAA,EAAAQ,OAAA,CAAAC,GAAA,CAAAC,gBAAA;EACD","ignoreList":[]}
@@ -3,15 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
7
8
  get: () => from[key],
8
9
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
10
  });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
15
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
16
+ value: true
15
17
  }), mod);
16
18
  var v1_exports = {};
17
19
  module.exports = __toCommonJS(v1_exports);
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var v1_exports = {};
19
21
  module.exports = __toCommonJS(v1_exports);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","v1_exports","module","exports","__reExport","require"],"sources":["../../../src/v1/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,UAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,UAAA;AACdG,UAAA,CAAAH,UAAA,EAAcI,OAAA,uBAAAH,MADd,CAAAC,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","v1_exports","module","exports","__reExport","require"],"sources":["../../../src/v1/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,UAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,UAAA;AACdG,UAAA,CAAAH,UAAA,EAAcI,OAAA,uBAAAH,MADd,CAAAC,OAAA","ignoreList":[]}
@@ -3,14 +3,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
- get: () => from[key],
8
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
- });
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
8
+ get: () => from[key],
9
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
10
+ });
11
+ }
10
12
  return to;
11
13
  };
12
14
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
13
- value: !0
15
+ value: true
14
16
  }), mod);
15
17
  var types_exports = {};
16
18
  module.exports = __toCommonJS(types_exports);
@@ -5,14 +5,16 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
9
- get: () => from[key],
10
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
- });
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
10
+ get: () => from[key],
11
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
12
+ });
13
+ }
12
14
  return to;
13
15
  };
14
16
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
- value: !0
17
+ value: true
16
18
  }), mod);
17
19
  var types_exports = {};
18
20
  module.exports = __toCommonJS(types_exports);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../../src/v1/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../../src/v1/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}