@tamagui/input 2.7.7 → 3.0.0-beta.1091.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/cjs/Input.cjs +72 -163
  2. package/dist/cjs/Input.native.cjs +208 -0
  3. package/dist/cjs/Input.native.js +186 -283
  4. package/dist/cjs/Input.native.js.map +1 -1
  5. package/dist/cjs/InputNativeProps.cjs +9 -11
  6. package/dist/cjs/InputNativeProps.native.cjs +18 -0
  7. package/dist/cjs/InputNativeProps.native.js +9 -10
  8. package/dist/cjs/InputNativeProps.native.js.map +1 -1
  9. package/dist/cjs/TextArea.cjs +23 -39
  10. package/dist/cjs/TextArea.native.cjs +38 -0
  11. package/dist/cjs/TextArea.native.js +23 -38
  12. package/dist/cjs/TextArea.native.js.map +1 -1
  13. package/dist/cjs/index.cjs +15 -17
  14. package/dist/cjs/index.native.cjs +32 -0
  15. package/dist/cjs/index.native.js +15 -16
  16. package/dist/cjs/index.native.js.map +1 -1
  17. package/dist/cjs/shared.cjs +74 -124
  18. package/dist/cjs/shared.native.cjs +101 -0
  19. package/dist/cjs/shared.native.js +80 -129
  20. package/dist/cjs/shared.native.js.map +1 -1
  21. package/dist/cjs/types.cjs +9 -11
  22. package/dist/cjs/types.native.cjs +18 -0
  23. package/dist/cjs/types.native.js +9 -10
  24. package/dist/cjs/types.native.js.map +1 -1
  25. package/dist/esm/Input.mjs +59 -139
  26. package/dist/esm/Input.mjs.map +1 -1
  27. package/dist/esm/Input.native.js +174 -261
  28. package/dist/esm/Input.native.js.map +1 -1
  29. package/dist/esm/InputNativeProps.mjs +0 -2
  30. package/dist/esm/InputNativeProps.native.js +0 -2
  31. package/dist/esm/TextArea.mjs +12 -22
  32. package/dist/esm/TextArea.mjs.map +1 -1
  33. package/dist/esm/TextArea.native.js +12 -22
  34. package/dist/esm/TextArea.native.js.map +1 -1
  35. package/dist/esm/index.js +6 -4
  36. package/dist/esm/index.mjs +6 -4
  37. package/dist/esm/index.native.js +6 -4
  38. package/dist/esm/shared.mjs +59 -107
  39. package/dist/esm/shared.mjs.map +1 -1
  40. package/dist/esm/shared.native.js +64 -112
  41. package/dist/esm/shared.native.js.map +1 -1
  42. package/dist/esm/types.mjs +0 -2
  43. package/dist/esm/types.native.js +0 -2
  44. package/dist/jsx/Input.mjs +59 -139
  45. package/dist/jsx/Input.mjs.map +1 -1
  46. package/dist/jsx/Input.native.cjs +208 -0
  47. package/dist/jsx/Input.native.js +186 -283
  48. package/dist/jsx/Input.native.js.map +1 -1
  49. package/dist/jsx/InputNativeProps.mjs +0 -2
  50. package/dist/jsx/InputNativeProps.native.cjs +18 -0
  51. package/dist/jsx/InputNativeProps.native.js +9 -10
  52. package/dist/jsx/InputNativeProps.native.js.map +1 -1
  53. package/dist/jsx/TextArea.mjs +12 -22
  54. package/dist/jsx/TextArea.mjs.map +1 -1
  55. package/dist/jsx/TextArea.native.cjs +38 -0
  56. package/dist/jsx/TextArea.native.js +23 -38
  57. package/dist/jsx/TextArea.native.js.map +1 -1
  58. package/dist/jsx/index.js +6 -4
  59. package/dist/jsx/index.mjs +6 -4
  60. package/dist/jsx/index.native.cjs +32 -0
  61. package/dist/jsx/index.native.js +15 -16
  62. package/dist/jsx/index.native.js.map +1 -1
  63. package/dist/jsx/shared.mjs +59 -107
  64. package/dist/jsx/shared.mjs.map +1 -1
  65. package/dist/jsx/shared.native.cjs +101 -0
  66. package/dist/jsx/shared.native.js +80 -129
  67. package/dist/jsx/shared.native.js.map +1 -1
  68. package/dist/jsx/types.mjs +0 -2
  69. package/dist/jsx/types.native.cjs +18 -0
  70. package/dist/jsx/types.native.js +9 -10
  71. package/dist/jsx/types.native.js.map +1 -1
  72. package/package.json +17 -17
  73. package/src/Input.native.tsx +267 -242
  74. package/src/Input.tsx +150 -154
  75. package/src/TextArea.tsx +9 -18
  76. package/src/shared.tsx +56 -109
  77. package/src/types.ts +2 -2
  78. package/types/Input.d.ts +32 -50
  79. package/types/Input.d.ts.map +1 -1
  80. package/types/Input.native.d.ts +32 -50
  81. package/types/Input.native.d.ts.map +1 -1
  82. package/types/TextArea.d.ts +16 -34
  83. package/types/TextArea.d.ts.map +1 -1
  84. package/types/shared.d.ts +38 -109
  85. package/types/shared.d.ts.map +1 -1
  86. package/types/types.d.ts +2 -2
  87. package/types/types.d.ts.map +1 -1
  88. package/dist/cjs/inputTypes.test-d.cjs +0 -128
  89. package/dist/cjs/inputTypes.test-d.native.js +0 -131
  90. package/dist/cjs/inputTypes.test-d.native.js.map +0 -1
  91. package/dist/cjs/v1/Input.cjs +0 -200
  92. package/dist/cjs/v1/Input.native.js +0 -183
  93. package/dist/cjs/v1/Input.native.js.map +0 -1
  94. package/dist/cjs/v1/TextArea.cjs +0 -52
  95. package/dist/cjs/v1/TextArea.native.js +0 -55
  96. package/dist/cjs/v1/TextArea.native.js.map +0 -1
  97. package/dist/cjs/v1/index.cjs +0 -21
  98. package/dist/cjs/v1/index.native.js +0 -24
  99. package/dist/cjs/v1/index.native.js.map +0 -1
  100. package/dist/cjs/v1/types.cjs +0 -18
  101. package/dist/cjs/v1/types.native.js +0 -21
  102. package/dist/cjs/v1/types.native.js.map +0 -1
  103. package/dist/esm/InputNativeProps.mjs.map +0 -1
  104. package/dist/esm/InputNativeProps.native.js.map +0 -1
  105. package/dist/esm/index.js.map +0 -1
  106. package/dist/esm/index.mjs.map +0 -1
  107. package/dist/esm/index.native.js.map +0 -1
  108. package/dist/esm/inputTypes.test-d.mjs +0 -129
  109. package/dist/esm/inputTypes.test-d.mjs.map +0 -1
  110. package/dist/esm/inputTypes.test-d.native.js +0 -129
  111. package/dist/esm/inputTypes.test-d.native.js.map +0 -1
  112. package/dist/esm/types.mjs.map +0 -1
  113. package/dist/esm/types.native.js.map +0 -1
  114. package/dist/esm/v1/Input.mjs +0 -164
  115. package/dist/esm/v1/Input.mjs.map +0 -1
  116. package/dist/esm/v1/Input.native.js +0 -144
  117. package/dist/esm/v1/Input.native.js.map +0 -1
  118. package/dist/esm/v1/TextArea.mjs +0 -27
  119. package/dist/esm/v1/TextArea.mjs.map +0 -1
  120. package/dist/esm/v1/TextArea.native.js +0 -27
  121. package/dist/esm/v1/TextArea.native.js.map +0 -1
  122. package/dist/esm/v1/index.mjs +0 -3
  123. package/dist/esm/v1/index.mjs.map +0 -1
  124. package/dist/esm/v1/index.native.js +0 -3
  125. package/dist/esm/v1/index.native.js.map +0 -1
  126. package/dist/esm/v1/types.mjs +0 -2
  127. package/dist/esm/v1/types.mjs.map +0 -1
  128. package/dist/esm/v1/types.native.js +0 -2
  129. package/dist/esm/v1/types.native.js.map +0 -1
  130. package/dist/jsx/InputNativeProps.mjs.map +0 -1
  131. package/dist/jsx/index.js.map +0 -1
  132. package/dist/jsx/index.mjs.map +0 -1
  133. package/dist/jsx/inputTypes.test-d.mjs +0 -129
  134. package/dist/jsx/inputTypes.test-d.mjs.map +0 -1
  135. package/dist/jsx/inputTypes.test-d.native.js +0 -131
  136. package/dist/jsx/inputTypes.test-d.native.js.map +0 -1
  137. package/dist/jsx/types.mjs.map +0 -1
  138. package/dist/jsx/v1/Input.mjs +0 -164
  139. package/dist/jsx/v1/Input.mjs.map +0 -1
  140. package/dist/jsx/v1/Input.native.js +0 -183
  141. package/dist/jsx/v1/Input.native.js.map +0 -1
  142. package/dist/jsx/v1/TextArea.mjs +0 -27
  143. package/dist/jsx/v1/TextArea.mjs.map +0 -1
  144. package/dist/jsx/v1/TextArea.native.js +0 -55
  145. package/dist/jsx/v1/TextArea.native.js.map +0 -1
  146. package/dist/jsx/v1/index.mjs +0 -3
  147. package/dist/jsx/v1/index.mjs.map +0 -1
  148. package/dist/jsx/v1/index.native.js +0 -24
  149. package/dist/jsx/v1/index.native.js.map +0 -1
  150. package/dist/jsx/v1/types.mjs +0 -2
  151. package/dist/jsx/v1/types.mjs.map +0 -1
  152. package/dist/jsx/v1/types.native.js +0 -21
  153. package/dist/jsx/v1/types.native.js.map +0 -1
  154. package/src/inputTypes.test-d.ts +0 -245
  155. package/src/v1/Input.native.tsx +0 -153
  156. package/src/v1/Input.tsx +0 -190
  157. package/src/v1/TextArea.tsx +0 -35
  158. package/src/v1/index.ts +0 -3
  159. package/src/v1/types.ts +0 -65
  160. package/types/v1/Input.d.ts +0 -64
  161. package/types/v1/Input.d.ts.map +0 -1
  162. package/types/v1/Input.native.d.ts +0 -63
  163. package/types/v1/Input.native.d.ts.map +0 -1
  164. package/types/v1/TextArea.d.ts +0 -41
  165. package/types/v1/TextArea.d.ts.map +0 -1
  166. package/types/v1/index.d.ts +0 -4
  167. package/types/v1/index.d.ts.map +0 -1
  168. package/types/v1/types.d.ts +0 -39
  169. package/types/v1/types.d.ts.map +0 -1
@@ -1,200 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
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, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- 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: true
30
- }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
34
- var Input_exports = {};
35
- __export(Input_exports, {
36
- Input: () => Input
37
- });
38
- module.exports = __toCommonJS(Input_exports);
39
- var import_core = require("@tamagui/core");
40
- var import_focusable = require("@tamagui/focusable");
41
- var import_element = require("@tamagui/element");
42
- var import_react = __toESM(require("react"), 1);
43
- var import_shared = require("../shared.cjs");
44
- var import_jsx_runtime = require("react/jsx-runtime");
45
- const StyledInput = (0, import_core.styled)(import_core.View, import_shared.styledBody[0], import_shared.styledBody[1]);
46
- const Input = StyledInput.styleable((inProps, forwardedRef) => {
47
- const {
48
- allowFontScaling,
49
- selectTextOnFocus,
50
- showSoftInputOnFocus,
51
- textContentType,
52
- passwordRules,
53
- textBreakStrategy,
54
- underlineColorAndroid,
55
- selection,
56
- lineBreakStrategyIOS,
57
- returnKeyLabel,
58
- disabled,
59
- onSubmitEditing,
60
- caretHidden,
61
- clearButtonMode,
62
- clearTextOnFocus,
63
- contextMenuHidden,
64
- dataDetectorTypes,
65
- id,
66
- enablesReturnKeyAutomatically,
67
- importantForAutofill,
68
- inlineImageLeft,
69
- inlineImagePadding,
70
- inputAccessoryViewID,
71
- keyboardAppearance,
72
- keyboardType,
73
- cursorColor,
74
- disableFullscreenUI,
75
- editable,
76
- maxFontSizeMultiplier,
77
- multiline,
78
- numberOfLines,
79
- onChangeText,
80
- onContentSizeChange,
81
- onEndEditing,
82
- onScroll,
83
- onSelectionChange,
84
- caretColor,
85
- placeholderTextColor,
86
- blurOnSubmit,
87
- enterKeyHint,
88
- returnKeyType,
89
- rejectResponderTermination,
90
- scrollEnabled,
91
- secureTextEntry,
92
- selectionColor,
93
- inputMode,
94
- ...rest
95
- } = inProps;
96
- const {
97
- ref,
98
- composedRef
99
- } = (0, import_element.useWebRef)(forwardedRef);
100
- const theme = (0, import_core.useTheme)();
101
- const _onSelectionChange = (0, import_core.useEvent)(() => {
102
- const start = ref.current?.selectionStart ?? 0;
103
- const end = ref.current?.selectionEnd ?? 0;
104
- onSelectionChange?.({
105
- nativeEvent: {
106
- selection: {
107
- end,
108
- start
109
- }
110
- }
111
- });
112
- });
113
- import_react.default.useEffect(() => {
114
- if (onSelectionChange) {
115
- ref.current?.addEventListener("selectionchange", _onSelectionChange);
116
- return () => {
117
- ref.current?.removeEventListener("selectionchange", _onSelectionChange);
118
- };
119
- }
120
- }, []);
121
- import_react.default.useEffect(() => {
122
- if (selection) ref.current?.setSelectionRange(selection.start || null, selection.end || null);
123
- }, [selection?.start, selection?.end]);
124
- const finalProps = {
125
- ...rest,
126
- disabled,
127
- caretColor,
128
- id,
129
- enterKeyHint,
130
- type: (() => {
131
- if (rest?.type) return rest.type;
132
- if (secureTextEntry) return "password";
133
- switch (keyboardType) {
134
- case "number-pad":
135
- case "numeric":
136
- return "number";
137
- case "email-address":
138
- return "email";
139
- case "phone-pad":
140
- return "tel";
141
- case "url":
142
- return "url";
143
- default:
144
- return "text";
145
- }
146
- })(),
147
- inputMode: (() => {
148
- switch (keyboardType) {
149
- case "number-pad":
150
- case "numeric":
151
- return "numeric";
152
- case "decimal-pad":
153
- return "decimal";
154
- case "email-address":
155
- return "email";
156
- case "phone-pad":
157
- return "tel";
158
- case "url":
159
- return "url";
160
- default:
161
- return;
162
- }
163
- })(),
164
- style: {
165
- ...rest.style,
166
- ...(placeholderTextColor && {
167
- "--t_placeholderColor": theme[placeholderTextColor]?.variable || placeholderTextColor
168
- }),
169
- ...(selectionColor && {
170
- "--t_selectionBackground": theme[selectionColor]?.variable || selectionColor
171
- })
172
- }
173
- };
174
- import_react.default.useEffect(() => {
175
- if (!id) return;
176
- if (disabled) return;
177
- return (0, import_focusable.registerFocusable)(id, {
178
- focusAndSelect: () => {
179
- ref.current?.focus();
180
- },
181
- focus: () => {}
182
- });
183
- }, [id, disabled]);
184
- return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
185
- children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("style", {
186
- children: `
187
- input::selection, textarea::selection {
188
- background-color: var(--t_selectionBackground) !important;
189
- }
190
-
191
- input::placeholder, textarea::placeholder {
192
- color: var(--t_placeholderColor) !important;
193
- }
194
- `
195
- }), /* @__PURE__ */(0, import_jsx_runtime.jsx)(StyledInput, {
196
- ref: composedRef,
197
- ...finalProps
198
- })]
199
- });
200
- });
@@ -1,183 +0,0 @@
1
- "use strict";
2
-
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
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, {
18
- get: () => from[key],
19
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
20
- });
21
- }
22
- return to;
23
- };
24
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
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);
36
- var Input_native_exports = {};
37
- __export(Input_native_exports, {
38
- Input: () => Input
39
- });
40
- module.exports = __toCommonJS(Input_native_exports);
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) {
126
- var {
127
- key
128
- } = e.nativeEvent;
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) {
137
- onKeyDown({
138
- key: "Enter",
139
- type: "keydown"
140
- });
141
- };
142
- }
143
- if (onChange || onInput) {
144
- finalProps.onChange = function (e) {
145
- var {
146
- text
147
- } = e.nativeEvent;
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 () {}
175
- });
176
- }, [id, disabled]);
177
- return /* @__PURE__ */(0, import_jsx_runtime.jsx)(StyledInput, {
178
- onChange: function (e) {},
179
- ref: composedRef,
180
- ...finalProps
181
- });
182
- });
183
- //# sourceMappingURL=Input.native.js.map
@@ -1 +0,0 @@
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,IAAI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1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
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, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
19
- };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
23
- var TextArea_exports = {};
24
- __export(TextArea_exports, {
25
- TextArea: () => TextArea
26
- });
27
- module.exports = __toCommonJS(TextArea_exports);
28
- var import_web = require("@tamagui/web");
29
- var import_Input = require("./Input.cjs");
30
- var import_shared = require("../shared.cjs");
31
- const 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
47
- }
48
- },
49
- defaultVariants: {
50
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
51
- }
52
- });
@@ -1,55 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
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, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
21
- };
22
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
23
- value: true
24
- }), mod);
25
- var TextArea_exports = {};
26
- __export(TextArea_exports, {
27
- TextArea: () => TextArea
28
- });
29
- module.exports = __toCommonJS(TextArea_exports);
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
45
- }
46
- },
47
- size: {
48
- "...size": import_shared.textAreaSizeVariant
49
- }
50
- },
51
- defaultVariants: {
52
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
53
- }
54
- });
55
- //# sourceMappingURL=TextArea.native.js.map
@@ -1 +0,0 @@
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":[]}
@@ -1,21 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
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
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: true
17
- }), mod);
18
- var v1_exports = {};
19
- module.exports = __toCommonJS(v1_exports);
20
- __reExport(v1_exports, require("./Input.cjs"), module.exports);
21
- __reExport(v1_exports, require("./TextArea.cjs"), module.exports);
@@ -1,24 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
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
- }
14
- return to;
15
- };
16
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
17
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
18
- value: true
19
- }), mod);
20
- var v1_exports = {};
21
- module.exports = __toCommonJS(v1_exports);
22
- __reExport(v1_exports, require("./Input.native.js"), module.exports);
23
- __reExport(v1_exports, require("./TextArea.native.js"), module.exports);
24
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
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,18 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
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
- }
12
- return to;
13
- };
14
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
15
- value: true
16
- }), mod);
17
- var types_exports = {};
18
- module.exports = __toCommonJS(types_exports);
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __copyProps = (to, from, except, desc) => {
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
- }
14
- return to;
15
- };
16
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
17
- value: true
18
- }), mod);
19
- var types_exports = {};
20
- module.exports = __toCommonJS(types_exports);
21
- //# sourceMappingURL=types.native.js.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- {"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":[],"sourcesContent":[],"mappings":"","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["inputSizeVariant","textAreaSizeVariant"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,SAASA,gBAAA,EAAkBC,mBAAA,QAA2B","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["inputSizeVariant","textAreaSizeVariant"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,SAASA,gBAAA,EAAkBC,mBAAA,QAA2B","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["inputSizeVariant","textAreaSizeVariant"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,SAASA,gBAAA,EAAkBC,mBAAA,QAA2B","ignoreList":[]}