@tamagui/input 1.97.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 (90) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/Input.js +137 -0
  3. package/dist/cjs/Input.js.map +6 -0
  4. package/dist/cjs/Input.native.js +169 -0
  5. package/dist/cjs/Input.native.js.map +6 -0
  6. package/dist/cjs/TextArea.js +42 -0
  7. package/dist/cjs/TextArea.js.map +6 -0
  8. package/dist/cjs/TextArea.native.js +81 -0
  9. package/dist/cjs/TextArea.native.js.map +6 -0
  10. package/dist/cjs/index.js +16 -0
  11. package/dist/cjs/index.js.map +6 -0
  12. package/dist/cjs/index.native.js +22 -0
  13. package/dist/cjs/index.native.js.map +6 -0
  14. package/dist/cjs/shared.js +109 -0
  15. package/dist/cjs/shared.js.map +6 -0
  16. package/dist/cjs/shared.native.js +152 -0
  17. package/dist/cjs/shared.native.js.map +6 -0
  18. package/dist/cjs/types.js +14 -0
  19. package/dist/cjs/types.js.map +6 -0
  20. package/dist/cjs/types.native.js +15 -0
  21. package/dist/cjs/types.native.js.map +6 -0
  22. package/dist/esm/Input.js +117 -0
  23. package/dist/esm/Input.js.map +6 -0
  24. package/dist/esm/Input.mjs +121 -0
  25. package/dist/esm/Input.native.js +145 -0
  26. package/dist/esm/Input.native.js.map +6 -0
  27. package/dist/esm/TextArea.js +28 -0
  28. package/dist/esm/TextArea.js.map +6 -0
  29. package/dist/esm/TextArea.mjs +25 -0
  30. package/dist/esm/TextArea.native.js +62 -0
  31. package/dist/esm/TextArea.native.js.map +6 -0
  32. package/dist/esm/index.js +3 -0
  33. package/dist/esm/index.js.map +6 -0
  34. package/dist/esm/index.mjs +2 -0
  35. package/dist/esm/index.native.js +3 -0
  36. package/dist/esm/index.native.js.map +6 -0
  37. package/dist/esm/shared.js +97 -0
  38. package/dist/esm/shared.js.map +6 -0
  39. package/dist/esm/shared.mjs +100 -0
  40. package/dist/esm/shared.native.js +131 -0
  41. package/dist/esm/shared.native.js.map +6 -0
  42. package/dist/esm/types.js +1 -0
  43. package/dist/esm/types.js.map +6 -0
  44. package/dist/esm/types.mjs +0 -0
  45. package/dist/esm/types.native.js +1 -0
  46. package/dist/esm/types.native.js.map +6 -0
  47. package/dist/jsx/Input.js +117 -0
  48. package/dist/jsx/Input.js.map +6 -0
  49. package/dist/jsx/Input.mjs +121 -0
  50. package/dist/jsx/Input.native.js +145 -0
  51. package/dist/jsx/Input.native.js.map +6 -0
  52. package/dist/jsx/TextArea.js +28 -0
  53. package/dist/jsx/TextArea.js.map +6 -0
  54. package/dist/jsx/TextArea.mjs +25 -0
  55. package/dist/jsx/TextArea.native.js +62 -0
  56. package/dist/jsx/TextArea.native.js.map +6 -0
  57. package/dist/jsx/index.js +3 -0
  58. package/dist/jsx/index.js.map +6 -0
  59. package/dist/jsx/index.mjs +2 -0
  60. package/dist/jsx/index.native.js +3 -0
  61. package/dist/jsx/index.native.js.map +6 -0
  62. package/dist/jsx/shared.js +97 -0
  63. package/dist/jsx/shared.js.map +6 -0
  64. package/dist/jsx/shared.mjs +100 -0
  65. package/dist/jsx/shared.native.js +131 -0
  66. package/dist/jsx/shared.native.js.map +6 -0
  67. package/dist/jsx/types.js +1 -0
  68. package/dist/jsx/types.js.map +6 -0
  69. package/dist/jsx/types.mjs +0 -0
  70. package/dist/jsx/types.native.js +1 -0
  71. package/dist/jsx/types.native.js.map +6 -0
  72. package/package.json +55 -0
  73. package/src/Input.native.tsx +148 -0
  74. package/src/Input.tsx +142 -0
  75. package/src/TextArea.tsx +27 -0
  76. package/src/index.ts +2 -0
  77. package/src/shared.tsx +129 -0
  78. package/src/types.ts +59 -0
  79. package/types/Input.d.ts +293 -0
  80. package/types/Input.d.ts.map +1 -0
  81. package/types/Input.native.d.ts +295 -0
  82. package/types/Input.native.d.ts.map +1 -0
  83. package/types/TextArea.d.ts +277 -0
  84. package/types/TextArea.d.ts.map +1 -0
  85. package/types/index.d.ts +3 -0
  86. package/types/index.d.ts.map +1 -0
  87. package/types/shared.d.ts +307 -0
  88. package/types/shared.d.ts.map +1 -0
  89. package/types/types.d.ts +40 -0
  90. package/types/types.d.ts.map +1 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Nate Wienert
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,137 @@
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, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var Input_exports = {};
24
+ __export(Input_exports, {
25
+ Input: () => Input
26
+ });
27
+ module.exports = __toCommonJS(Input_exports);
28
+ var import_core = require("@tamagui/core"), import_focusable = require("@tamagui/focusable"), import_react = __toESM(require("react")), import_shared = require("./shared"), import_jsx_runtime = require("react/jsx-runtime");
29
+ const StyledInput = (0, import_core.styled)(import_core.View, import_shared.styledBody[0], import_shared.styledBody[1]), Input = StyledInput.styleable((inProps, forwardedRef) => {
30
+ const {
31
+ // some of destructed props are just to avoid passing them to ...rest because they are not in web.
32
+ allowFontScaling,
33
+ selectTextOnFocus,
34
+ showSoftInputOnFocus,
35
+ textContentType,
36
+ passwordRules,
37
+ textBreakStrategy,
38
+ underlineColorAndroid,
39
+ selection,
40
+ lineBreakStrategyIOS,
41
+ returnKeyLabel,
42
+ disabled,
43
+ onSubmitEditing,
44
+ caretHidden,
45
+ clearButtonMode,
46
+ clearTextOnFocus,
47
+ contextMenuHidden,
48
+ dataDetectorTypes,
49
+ id,
50
+ enablesReturnKeyAutomatically,
51
+ importantForAutofill,
52
+ inlineImageLeft,
53
+ inlineImagePadding,
54
+ inputAccessoryViewID,
55
+ keyboardAppearance,
56
+ keyboardType,
57
+ cursorColor,
58
+ disableFullscreenUI,
59
+ editable,
60
+ maxFontSizeMultiplier,
61
+ multiline,
62
+ numberOfLines,
63
+ onChangeText,
64
+ onContentSizeChange,
65
+ onEndEditing,
66
+ onScroll,
67
+ onSelectionChange,
68
+ caretColor,
69
+ placeholderTextColor,
70
+ blurOnSubmit,
71
+ enterKeyHint,
72
+ returnKeyType,
73
+ rejectResponderTermination,
74
+ scrollEnabled,
75
+ secureTextEntry,
76
+ selectionColor,
77
+ inputMode,
78
+ ...rest
79
+ } = inProps, ref = import_react.default.useRef(null), theme = (0, import_core.useTheme)(), composedRefs = (0, import_core.useComposedRefs)(forwardedRef, ref), _onSelectionChange = (0, import_core.useEvent)(() => {
80
+ const start = ref.current?.selectionStart ?? 0, end = ref.current?.selectionEnd ?? 0;
81
+ onSelectionChange?.({
82
+ nativeEvent: {
83
+ selection: {
84
+ end,
85
+ start
86
+ }
87
+ }
88
+ });
89
+ });
90
+ (0, import_react.useEffect)(() => {
91
+ if (onSelectionChange)
92
+ return ref.current?.addEventListener("selectionchange", _onSelectionChange), () => {
93
+ ref.current?.removeEventListener("selectionchange", _onSelectionChange);
94
+ };
95
+ }, []), (0, import_react.useEffect)(() => {
96
+ selection && ref.current?.setSelectionRange(selection.start || null, selection.end || null);
97
+ }, [selection?.start, selection?.end]);
98
+ const finalProps = {
99
+ ...rest,
100
+ inputMode,
101
+ disabled,
102
+ caretColor,
103
+ id,
104
+ enterKeyHint,
105
+ style: {
106
+ ...rest.style,
107
+ ...placeholderTextColor && {
108
+ "--placeholderColor": theme[placeholderTextColor]?.variable || placeholderTextColor
109
+ },
110
+ ...selectionColor && {
111
+ "--selectionColor": theme[selectionColor]?.variable || selectionColor
112
+ }
113
+ }
114
+ };
115
+ return (0, import_react.useEffect)(() => {
116
+ if (id && !disabled)
117
+ return (0, import_focusable.registerFocusable)(id, {
118
+ focusAndSelect: () => {
119
+ ref.current?.focus();
120
+ },
121
+ focus: () => {
122
+ }
123
+ });
124
+ }, [id, disabled]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
125
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("style", { children: `
126
+ input::selection, textarea::selection {
127
+ background-color: var(--selectionBackground) !important;
128
+ }
129
+
130
+ input::placeholder, textarea::placeholder {
131
+ color: var(--placeholderColor) !important;
132
+ }
133
+ ` }),
134
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledInput, { ref: composedRefs, ...finalProps })
135
+ ] });
136
+ });
137
+ //# sourceMappingURL=Input.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Input.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAkE,0BAClE,mBAAkC,+BAClC,eAAiC,2BACjC,gBAA2B,qBAyHvB;AAvHJ,MAAM,kBAAc,oBAAO,kBAAM,yBAAW,CAAC,GAAG,yBAAW,CAAC,CAAC,GAEhD,QAAQ,YAAY,UAAsB,CAAC,SAAS,iBAAiB;AAChF,QAAM;AAAA;AAAA,IAEJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,IAAI,SAEE,MAAM,aAAAA,QAAM,OAAyB,IAAI,GACzC,Y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CAAC,eAAY,KAAK,cAAe,GAAG,YAAY;AAAA,KAClD;AAEJ,CAAC;",
5
+ "names": ["React"]
6
+ }
@@ -0,0 +1,169 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: !0 });
10
+ }, __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from == "object" || typeof from == "function")
12
+ for (let key of __getOwnPropNames(from))
13
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ return to;
15
+ };
16
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
17
+ // If the importer is in node compatibility mode or this is not an ESM
18
+ // file that has been converted to a CommonJS file using a Babel-
19
+ // compatible transform (i.e. "__esModule" has not been set), then set
20
+ // "default" to the CommonJS "module.exports" for node compatibility.
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
22
+ mod
23
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
+ var Input_native_exports = {};
25
+ __export(Input_native_exports, {
26
+ Input: () => Input
27
+ });
28
+ module.exports = __toCommonJS(Input_native_exports);
29
+ var import_jsx_runtime = require("react/jsx-runtime"), import_core = require("@tamagui/core"), import_focusable = require("@tamagui/focusable"), import_react = __toESM(require("react")), import_react_native = require("react-native"), import_shared = require("./shared");
30
+ function _define_property(obj, key, value) {
31
+ return key in obj ? Object.defineProperty(obj, key, {
32
+ value,
33
+ enumerable: !0,
34
+ configurable: !0,
35
+ writable: !0
36
+ }) : obj[key] = value, obj;
37
+ }
38
+ function _object_spread(target) {
39
+ for (var i = 1; i < arguments.length; i++) {
40
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
41
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
42
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
43
+ }))), ownKeys2.forEach(function(key) {
44
+ _define_property(target, key, source[key]);
45
+ });
46
+ }
47
+ return target;
48
+ }
49
+ function ownKeys(object, enumerableOnly) {
50
+ var keys = Object.keys(object);
51
+ if (Object.getOwnPropertySymbols) {
52
+ var symbols = Object.getOwnPropertySymbols(object);
53
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
54
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
55
+ })), keys.push.apply(keys, symbols);
56
+ }
57
+ return keys;
58
+ }
59
+ function _object_spread_props(target, source) {
60
+ return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
61
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
62
+ }), target;
63
+ }
64
+ function _object_without_properties(source, excluded) {
65
+ if (source == null)
66
+ return {};
67
+ var target = _object_without_properties_loose(source, excluded), key, i;
68
+ if (Object.getOwnPropertySymbols) {
69
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
70
+ for (i = 0; i < sourceSymbolKeys.length; i++)
71
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
72
+ }
73
+ return target;
74
+ }
75
+ function _object_without_properties_loose(source, excluded) {
76
+ if (source == null)
77
+ return {};
78
+ var target = {}, sourceKeys = Object.keys(source), key, i;
79
+ for (i = 0; i < sourceKeys.length; i++)
80
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
81
+ return target;
82
+ }
83
+ var StyledInput = (0, import_core.styled)(import_react_native.TextInput, import_shared.styledBody[0], import_shared.styledBody[1]), Input = StyledInput.styleable(function(inProps, forwardedRef) {
84
+ var type = inProps.type, dirname = inProps.dirname, max = inProps.max, min = inProps.min, minLength = inProps.minLength, multiple = inProps.multiple, name = inProps.name, required = inProps.required, step = inProps.step, disabled = inProps.disabled, id = inProps.id, caretColor = inProps.caretColor, onChange = inProps.onChange, onInput = inProps.onInput, rows = inProps.rows, enterKeyHint = inProps.enterKeyHint, returnKeyType = inProps.returnKeyType, onKeyDown = inProps.onKeyDown, inputMode = inProps.inputMode, tag = inProps.tag, rest = _object_without_properties(inProps, [
85
+ "type",
86
+ "dirname",
87
+ "max",
88
+ "min",
89
+ "minLength",
90
+ "multiple",
91
+ "name",
92
+ "required",
93
+ "step",
94
+ "disabled",
95
+ "id",
96
+ "caretColor",
97
+ "onChange",
98
+ "onInput",
99
+ "rows",
100
+ "enterKeyHint",
101
+ "returnKeyType",
102
+ "onKeyDown",
103
+ "inputMode",
104
+ "tag"
105
+ ]), ref = import_react.default.useRef(null), composedRefs = (0, import_core.useComposedRefs)(forwardedRef, ref), secureTextEntry = !1, cursorColor = caretColor, _returnKeyType = returnKeyType, _enterKeyHint = enterKeyHint;
106
+ enterKeyHint === "go" && (_returnKeyType = "go", _enterKeyHint = void 0);
107
+ var _inputMode = inputMode;
108
+ 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";
109
+ var showSoftInputOnFocus = !0;
110
+ inputMode === "none" && (showSoftInputOnFocus = !1);
111
+ var finalProps = _object_spread_props(_object_spread({}, rest), {
112
+ inputMode: _inputMode,
113
+ showSoftInputOnFocus,
114
+ disabled,
115
+ id,
116
+ cursorColor,
117
+ enterKeyHint: _enterKeyHint,
118
+ returnKeyType: _returnKeyType,
119
+ secureTextEntry,
120
+ numberOfLines: rows || rest.numberOfLines
121
+ });
122
+ return tag === "textarea" && (finalProps.multiline = !0), onKeyDown && (finalProps.onKeyPress = function(e) {
123
+ var key = e.nativeEvent.key;
124
+ (key === "Backspace" || tag === "textarea" && key === "Enter" || key.length === 1) && onKeyDown({
125
+ key,
126
+ type: "keydown"
127
+ });
128
+ }, finalProps.onSubmitEditing = function(e) {
129
+ onKeyDown({
130
+ key: "Enter",
131
+ type: "keydown"
132
+ });
133
+ }), (onChange || onInput) && (finalProps.onChange = function(e) {
134
+ var text = e.nativeEvent.text;
135
+ onChange && onChange({
136
+ target: {
137
+ value: text
138
+ },
139
+ type: "change"
140
+ }), onInput != null && onInput({
141
+ target: {
142
+ value: text
143
+ },
144
+ type: "input"
145
+ });
146
+ }), (0, import_react.useEffect)(function() {
147
+ if (id && !disabled)
148
+ return (0, import_focusable.registerFocusable)(id, {
149
+ focusAndSelect: function() {
150
+ var _ref_current;
151
+ (_ref_current = ref.current) === null || _ref_current === void 0 || _ref_current.focus();
152
+ },
153
+ focus: function() {
154
+ }
155
+ });
156
+ }, [
157
+ id,
158
+ disabled
159
+ ]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledInput, _object_spread({
160
+ onChange: function(e) {
161
+ },
162
+ ref: composedRefs
163
+ }, finalProps));
164
+ });
165
+ // Annotate the CommonJS export names for ESM import in node:
166
+ 0 && (module.exports = {
167
+ Input
168
+ });
169
+ //# sourceMappingURL=Input.native.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/packages/input/src/Input.native.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,cAAwC,0BACxC,mBAAkC,+BAClC,eAAiC,2BAEjC,sBAA0B,yBAC1B,gBAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3B,I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AA,CAAA,GACdb,IAAAA,GAAAA;IACHF,WAAWa;IACXC;IACAvB;IACAC;IACAiB;IACAZ,cAAcc;IACdb,eAAeY;IACfF;IACAQ,eAAepB,QAAQM,KAAKc;;AAG9B,SAAIf,QAAQ,eACVc,WAAWE,YAAY,KAGrBlB,cACFgB,WAAWG,aAAa,SAACC,GAAAA;AACvB,QAAQC,MAAQD,EAAEE,YAAVD;AACR,KACEA,QAAQ,eACPnB,QAAQ,cAAcmB,QAAQ,WAC/BA,IAAIE,WAAW,MAEfvB,UAAU;MACRqB;MACAtC,MAAM;IACR,CAAA;EAEJ,GACAiC,WAAWQ,kBAAkB,SAACJ,GAAAA;AAC5BpB,cAAU;MACRqB,KAAK;MACLtC,MAAM;IACR,CAAA;EACF,KAGEY,YAAYC,aACdoB,WAAWrB,WAAW,SAACyB,GAAAA;AACrB,QAAQK,OAASL,EAAEE,YAAXG;AACR,IAAI9B,YACFA,SAAS;MACP+B,QAAQ;QACNC,OAAOF;MACT;MACA1C,MAAM;IACR,CAAA,GAEEa,WAAW,QACbA,QAAQ;MACN8B,QAAQ;QACNC,OAAOF;MACT;MACA1C,MAAM;IACR,CAAA;EAEJ,QAGF6C,wBAAU,WAAA;AACR,QAAKnC,MACDD;AAEJ,iBAAOqC,oCAAkBpC,IAAI;QAC3BqC,gBAAgB,WAAA;cACd1B;WAAAA,eAAAA,IAAI2B,aAAO,QAAX3B,iBAAAA,UAAAA,aAAa4B,MAAK;QACpB;QACAA,OAAO,WAAA;QAAO;MAChB,CAAA;EACF,GAAG;IAACvC;IAAID;GAAS,GACV,uCAAAyC,KAAC1D,aAAAA,eAAAA;IAAYoB,UAAU,SAACyB,GAAAA;IAAO;IAAGhB,KAAKG;KAAkBS,UAAAA,CAAAA;AAClE,CAAA;",
5
+ "names": ["StyledInput", "styled", "TextInput", "styledBody", "Input", "styleable", "inProps", "forwardedRef", "type", "dirname", "max", "min", "minLength", "multiple", "name", "required", "step", "disabled", "id", "caretColor", "onChange", "onInput", "rows", "enterKeyHint", "returnKeyType", "onKeyDown", "inputMode", "tag", "rest", "ref", "React", "useRef", "composedRefs", "useComposedRefs", "secureTextEntry", "cursorColor", "_returnKeyType", "_enterKeyHint", "undefined", "_inputMode", "showSoftInputOnFocus", "finalProps", "numberOfLines", "multiline", "onKeyPress", "e", "key", "nativeEvent", "length", "onSubmitEditing", "text", "target", "value", "useEffect", "registerFocusable", "focusAndSelect", "current", "focus", "_jsx"]
6
+ }
@@ -0,0 +1,42 @@
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)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var TextArea_exports = {};
16
+ __export(TextArea_exports, {
17
+ TextArea: () => TextArea
18
+ });
19
+ module.exports = __toCommonJS(TextArea_exports);
20
+ var import_web = require("@tamagui/web"), import_Input = require("./Input"), import_shared = require("./shared");
21
+ const TextArea = (0, import_web.styled)(import_Input.Input, {
22
+ name: "TextArea",
23
+ tag: "textarea",
24
+ // this attribute fixes firefox newline issue
25
+ whiteSpace: "pre-wrap",
26
+ variants: {
27
+ unstyled: {
28
+ false: {
29
+ height: "auto",
30
+ ...import_shared.defaultStyles,
31
+ numberOfLines: 3
32
+ }
33
+ },
34
+ size: {
35
+ "...size": import_shared.textAreaSizeVariant
36
+ }
37
+ },
38
+ defaultVariants: {
39
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
40
+ }
41
+ });
42
+ //# sourceMappingURL=TextArea.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/TextArea.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAuB,yBACvB,eAAsB,oBACtB,gBAAmD;AAC5C,MAAM,eAAW,mBAAO,oBAAO;AAAA,EACpC,MAAM;AAAA,EACN,KAAK;AAAA;AAAA,EAEL,YAAY;AAAA,EAEZ,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,QAAQ;AAAA,QACR,GAAG;AAAA,QACH,eAAe;AAAA,MACjB;AAAA,IACF;AAAA,IAEA,MAAM;AAAA,MACJ,WAAW;AAAA,IACb;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
5
+ "names": []
6
+ }
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
16
+ var TextArea_exports = {};
17
+ __export(TextArea_exports, {
18
+ TextArea: () => TextArea
19
+ });
20
+ module.exports = __toCommonJS(TextArea_exports);
21
+ var import_web = require("@tamagui/web"), import_Input = require("./Input"), import_shared = require("./shared");
22
+ function _define_property(obj, key, value) {
23
+ return key in obj ? Object.defineProperty(obj, key, {
24
+ value,
25
+ enumerable: !0,
26
+ configurable: !0,
27
+ writable: !0
28
+ }) : obj[key] = value, obj;
29
+ }
30
+ function _object_spread(target) {
31
+ for (var i = 1; i < arguments.length; i++) {
32
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
33
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
34
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
35
+ }))), ownKeys2.forEach(function(key) {
36
+ _define_property(target, key, source[key]);
37
+ });
38
+ }
39
+ return target;
40
+ }
41
+ function ownKeys(object, enumerableOnly) {
42
+ var keys = Object.keys(object);
43
+ if (Object.getOwnPropertySymbols) {
44
+ var symbols = Object.getOwnPropertySymbols(object);
45
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
46
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
47
+ })), keys.push.apply(keys, symbols);
48
+ }
49
+ return keys;
50
+ }
51
+ function _object_spread_props(target, source) {
52
+ return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
53
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
54
+ }), target;
55
+ }
56
+ var TextArea = (0, import_web.styled)(import_Input.Input, {
57
+ name: "TextArea",
58
+ tag: "textarea",
59
+ // this attribute fixes firefox newline issue
60
+ whiteSpace: "pre-wrap",
61
+ variants: {
62
+ unstyled: {
63
+ false: _object_spread_props(_object_spread({
64
+ height: "auto"
65
+ }, import_shared.defaultStyles), {
66
+ numberOfLines: 3
67
+ })
68
+ },
69
+ size: {
70
+ "...size": import_shared.textAreaSizeVariant
71
+ }
72
+ },
73
+ defaultVariants: {
74
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
75
+ }
76
+ });
77
+ // Annotate the CommonJS export names for ESM import in node:
78
+ 0 && (module.exports = {
79
+ TextArea
80
+ });
81
+ //# sourceMappingURL=TextArea.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/packages/input/src/TextArea.tsx"],
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA,iBAAuB,yBACvB,eAAsB,oBACtB,gBAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAC5C,IAAMA,eAAWC,mBAAOC,oBAAO;EACpCC,MAAM;EACNC,KAAK;;EAELC,YAAY;EAEZC,UAAU;IACRC,UAAU;MACRC,OAAO,qBAAA,eAAA;QACLC,QAAQ;SACLC,2BAAAA,GAAAA;QACHC,eAAe;;IAEnB;IAEAC,MAAM;MACJ,WAAWC;IACb;EACF;EAEAC,iBAAiB;IACfP,UAAUQ,QAAQC,IAAIC,qBAAqB;EAC7C;AACF,CAAA;",
5
+ "names": ["TextArea", "styled", "Input", "name", "tag", "whiteSpace", "variants", "unstyled", "false", "height", "defaultStyles", "numberOfLines", "size", "textAreaSizeVariant", "defaultVariants", "process", "env", "TAMAGUI_HEADLESS"]
6
+ }
@@ -0,0 +1,16 @@
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))
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
+ return to;
10
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
+ var src_exports = {};
13
+ module.exports = __toCommonJS(src_exports);
14
+ __reExport(src_exports, require("./Input"), module.exports);
15
+ __reExport(src_exports, require("./TextArea"), module.exports);
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,oBAAd;AACA,wBAAc,uBADd;",
5
+ "names": []
6
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from == "object" || typeof from == "function")
8
+ for (let key of __getOwnPropNames(from))
9
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ return to;
11
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
12
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
13
+ var src_exports = {};
14
+ module.exports = __toCommonJS(src_exports);
15
+ __reExport(src_exports, require("./Input"), module.exports);
16
+ __reExport(src_exports, require("./TextArea"), module.exports);
17
+ // Annotate the CommonJS export names for ESM import in node:
18
+ 0 && (module.exports = {
19
+ ...require("./Input"),
20
+ ...require("./TextArea")
21
+ });
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/tamagui/packages/input/src/index.ts"],
4
+ "mappings": ";;;;;;;;;;;;AAAA;;wBAAc,oBAAd;AACA,wBAAc,uBADd;",
5
+ "names": []
6
+ }
@@ -0,0 +1,109 @@
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)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var shared_exports = {};
16
+ __export(shared_exports, {
17
+ INPUT_NAME: () => INPUT_NAME,
18
+ defaultStyles: () => defaultStyles,
19
+ inputSizeVariant: () => inputSizeVariant,
20
+ styledBody: () => styledBody,
21
+ textAreaSizeVariant: () => textAreaSizeVariant
22
+ });
23
+ module.exports = __toCommonJS(shared_exports);
24
+ var import_core = require("@tamagui/core"), import_core2 = require("@tamagui/core"), import_get_button_sized = require("@tamagui/get-button-sized"), import_get_font_sized = require("@tamagui/get-font-sized"), import_get_token = require("@tamagui/get-token");
25
+ const defaultStyles = {
26
+ size: "$true",
27
+ fontFamily: "$body",
28
+ borderWidth: 1,
29
+ outlineWidth: 0,
30
+ color: "$color",
31
+ ...import_core2.isWeb ? {
32
+ tabIndex: 0
33
+ } : {
34
+ focusable: !0
35
+ },
36
+ borderColor: "$borderColor",
37
+ backgroundColor: "$background",
38
+ // this fixes a flex bug where it overflows container
39
+ minWidth: 0,
40
+ hoverStyle: {
41
+ borderColor: "$borderColorHover"
42
+ },
43
+ focusStyle: {
44
+ borderColor: "$borderColorFocus"
45
+ },
46
+ focusVisibleStyle: {
47
+ outlineColor: "$outlineColor",
48
+ outlineWidth: 2,
49
+ outlineStyle: "solid"
50
+ }
51
+ }, inputSizeVariant = (val = "$true", extras) => {
52
+ if (extras.props.multiline || extras.props.numberOfLines > 1)
53
+ return textAreaSizeVariant(val, extras);
54
+ const buttonStyles = (0, import_get_button_sized.getButtonSized)(val, extras), paddingHorizontal = (0, import_get_token.getSpace)(val, {
55
+ shift: -1,
56
+ bounds: [2]
57
+ }), fontStyle = (0, import_get_font_sized.getFontSized)(val, extras);
58
+ return !import_core2.isWeb && fontStyle && delete fontStyle.lineHeight, {
59
+ ...fontStyle,
60
+ ...buttonStyles,
61
+ paddingHorizontal
62
+ };
63
+ }, textAreaSizeVariant = (val = "$true", extras) => {
64
+ const { props } = extras, buttonStyles = (0, import_get_button_sized.getButtonSized)(val, extras), fontStyle = (0, import_get_font_sized.getFontSized)(val, extras), lines = props.rows ?? props.numberOfLines, height = typeof lines == "number" ? lines * (0, import_core2.getVariableValue)(fontStyle.lineHeight) : "auto", paddingVertical = (0, import_get_token.getSpace)(val, {
65
+ shift: -2,
66
+ bounds: [2]
67
+ }), paddingHorizontal = (0, import_get_token.getSpace)(val, {
68
+ shift: -1,
69
+ bounds: [2]
70
+ });
71
+ return {
72
+ ...buttonStyles,
73
+ ...fontStyle,
74
+ paddingVertical,
75
+ paddingHorizontal,
76
+ height
77
+ };
78
+ }, INPUT_NAME = "Input", styledBody = [
79
+ {
80
+ name: INPUT_NAME,
81
+ tag: "input",
82
+ variants: {
83
+ unstyled: {
84
+ false: defaultStyles
85
+ },
86
+ size: {
87
+ "...size": inputSizeVariant
88
+ },
89
+ disabled: {
90
+ true: {}
91
+ }
92
+ },
93
+ defaultVariants: {
94
+ unstyled: process.env.TAMAGUI_HEADLESS === "1"
95
+ }
96
+ },
97
+ {
98
+ isInput: !0,
99
+ accept: {
100
+ placeholderTextColor: "color",
101
+ selectionColor: "color"
102
+ },
103
+ validStyles: {
104
+ ...import_core.validStyles,
105
+ ...import_core.stylePropsTextOnly
106
+ }
107
+ }
108
+ ];
109
+ //# sourceMappingURL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