@tamagui/input 2.7.7 → 3.0.0-beta.637.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.
- package/dist/cjs/Input.cjs +78 -162
- package/dist/cjs/Input.native.cjs +209 -0
- package/dist/cjs/Input.native.js +186 -282
- package/dist/cjs/Input.native.js.map +1 -1
- package/dist/cjs/InputNativeProps.cjs +10 -11
- package/dist/cjs/InputNativeProps.native.cjs +19 -0
- package/dist/cjs/InputNativeProps.native.js +10 -10
- package/dist/cjs/InputNativeProps.native.js.map +1 -1
- package/dist/cjs/TextArea.cjs +25 -38
- package/dist/cjs/TextArea.native.cjs +41 -0
- package/dist/cjs/TextArea.native.js +25 -37
- package/dist/cjs/TextArea.native.js.map +1 -1
- package/dist/cjs/index.cjs +16 -17
- package/dist/cjs/index.native.cjs +33 -0
- package/dist/cjs/index.native.js +16 -16
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/shared.cjs +115 -122
- package/dist/cjs/shared.native.cjs +144 -0
- package/dist/cjs/shared.native.js +120 -126
- package/dist/cjs/shared.native.js.map +1 -1
- package/dist/cjs/types.cjs +10 -11
- package/dist/cjs/types.native.cjs +19 -0
- package/dist/cjs/types.native.js +10 -10
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/esm/Input.mjs +63 -137
- package/dist/esm/Input.mjs.map +1 -1
- package/dist/esm/Input.native.js +172 -259
- package/dist/esm/Input.native.js.map +1 -1
- package/dist/esm/InputNativeProps.mjs +0 -2
- package/dist/esm/InputNativeProps.native.js +0 -2
- package/dist/esm/TextArea.mjs +12 -20
- package/dist/esm/TextArea.mjs.map +1 -1
- package/dist/esm/TextArea.native.js +12 -20
- package/dist/esm/TextArea.native.js.map +1 -1
- package/dist/esm/index.js +6 -4
- package/dist/esm/index.mjs +6 -4
- package/dist/esm/index.native.js +6 -4
- package/dist/esm/shared.mjs +99 -104
- package/dist/esm/shared.mjs.map +1 -1
- package/dist/esm/shared.native.js +104 -109
- package/dist/esm/shared.native.js.map +1 -1
- package/dist/esm/types.mjs +0 -2
- package/dist/esm/types.native.js +0 -2
- package/dist/jsx/Input.mjs +63 -137
- package/dist/jsx/Input.mjs.map +1 -1
- package/dist/jsx/Input.native.cjs +209 -0
- package/dist/jsx/Input.native.js +186 -282
- package/dist/jsx/Input.native.js.map +1 -1
- package/dist/jsx/InputNativeProps.mjs +0 -2
- package/dist/jsx/InputNativeProps.native.cjs +19 -0
- package/dist/jsx/InputNativeProps.native.js +10 -10
- package/dist/jsx/InputNativeProps.native.js.map +1 -1
- package/dist/jsx/TextArea.mjs +12 -20
- package/dist/jsx/TextArea.mjs.map +1 -1
- package/dist/jsx/TextArea.native.cjs +41 -0
- package/dist/jsx/TextArea.native.js +25 -37
- package/dist/jsx/TextArea.native.js.map +1 -1
- package/dist/jsx/index.js +6 -4
- package/dist/jsx/index.mjs +6 -4
- package/dist/jsx/index.native.cjs +33 -0
- package/dist/jsx/index.native.js +16 -16
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/shared.mjs +99 -104
- package/dist/jsx/shared.mjs.map +1 -1
- package/dist/jsx/shared.native.cjs +144 -0
- package/dist/jsx/shared.native.js +120 -126
- package/dist/jsx/shared.native.js.map +1 -1
- package/dist/jsx/types.mjs +0 -2
- package/dist/jsx/types.native.cjs +19 -0
- package/dist/jsx/types.native.js +10 -10
- package/dist/jsx/types.native.js.map +1 -1
- package/package.json +13 -15
- package/src/Input.native.tsx +263 -240
- package/src/Input.tsx +162 -152
- package/src/TextArea.tsx +6 -14
- package/src/shared.tsx +65 -70
- package/src/types.ts +1 -1
- package/types/Input.d.ts +57 -41
- package/types/Input.d.ts.map +1 -1
- package/types/Input.native.d.ts +57 -41
- package/types/Input.native.d.ts.map +1 -1
- package/types/TextArea.d.ts +172 -24
- package/types/TextArea.d.ts.map +1 -1
- package/types/shared.d.ts +14 -99
- package/types/shared.d.ts.map +1 -1
- package/types/types.d.ts +1 -1
- package/dist/cjs/inputTypes.test-d.cjs +0 -128
- package/dist/cjs/inputTypes.test-d.native.js +0 -131
- package/dist/cjs/inputTypes.test-d.native.js.map +0 -1
- package/dist/cjs/v1/Input.cjs +0 -200
- package/dist/cjs/v1/Input.native.js +0 -183
- package/dist/cjs/v1/Input.native.js.map +0 -1
- package/dist/cjs/v1/TextArea.cjs +0 -52
- package/dist/cjs/v1/TextArea.native.js +0 -55
- package/dist/cjs/v1/TextArea.native.js.map +0 -1
- package/dist/cjs/v1/index.cjs +0 -21
- package/dist/cjs/v1/index.native.js +0 -24
- package/dist/cjs/v1/index.native.js.map +0 -1
- package/dist/cjs/v1/types.cjs +0 -18
- package/dist/cjs/v1/types.native.js +0 -21
- package/dist/cjs/v1/types.native.js.map +0 -1
- package/dist/esm/InputNativeProps.mjs.map +0 -1
- package/dist/esm/InputNativeProps.native.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/inputTypes.test-d.mjs +0 -129
- package/dist/esm/inputTypes.test-d.mjs.map +0 -1
- package/dist/esm/inputTypes.test-d.native.js +0 -129
- package/dist/esm/inputTypes.test-d.native.js.map +0 -1
- package/dist/esm/types.mjs.map +0 -1
- package/dist/esm/types.native.js.map +0 -1
- package/dist/esm/v1/Input.mjs +0 -164
- package/dist/esm/v1/Input.mjs.map +0 -1
- package/dist/esm/v1/Input.native.js +0 -144
- package/dist/esm/v1/Input.native.js.map +0 -1
- package/dist/esm/v1/TextArea.mjs +0 -27
- package/dist/esm/v1/TextArea.mjs.map +0 -1
- package/dist/esm/v1/TextArea.native.js +0 -27
- package/dist/esm/v1/TextArea.native.js.map +0 -1
- package/dist/esm/v1/index.mjs +0 -3
- package/dist/esm/v1/index.mjs.map +0 -1
- package/dist/esm/v1/index.native.js +0 -3
- package/dist/esm/v1/index.native.js.map +0 -1
- package/dist/esm/v1/types.mjs +0 -2
- package/dist/esm/v1/types.mjs.map +0 -1
- package/dist/esm/v1/types.native.js +0 -2
- package/dist/esm/v1/types.native.js.map +0 -1
- package/dist/jsx/InputNativeProps.mjs.map +0 -1
- package/dist/jsx/index.js.map +0 -1
- package/dist/jsx/index.mjs.map +0 -1
- package/dist/jsx/inputTypes.test-d.mjs +0 -129
- package/dist/jsx/inputTypes.test-d.mjs.map +0 -1
- package/dist/jsx/inputTypes.test-d.native.js +0 -131
- package/dist/jsx/inputTypes.test-d.native.js.map +0 -1
- package/dist/jsx/types.mjs.map +0 -1
- package/dist/jsx/v1/Input.mjs +0 -164
- package/dist/jsx/v1/Input.mjs.map +0 -1
- package/dist/jsx/v1/Input.native.js +0 -183
- package/dist/jsx/v1/Input.native.js.map +0 -1
- package/dist/jsx/v1/TextArea.mjs +0 -27
- package/dist/jsx/v1/TextArea.mjs.map +0 -1
- package/dist/jsx/v1/TextArea.native.js +0 -55
- package/dist/jsx/v1/TextArea.native.js.map +0 -1
- package/dist/jsx/v1/index.mjs +0 -3
- package/dist/jsx/v1/index.mjs.map +0 -1
- package/dist/jsx/v1/index.native.js +0 -24
- package/dist/jsx/v1/index.native.js.map +0 -1
- package/dist/jsx/v1/types.mjs +0 -2
- package/dist/jsx/v1/types.mjs.map +0 -1
- package/dist/jsx/v1/types.native.js +0 -21
- package/dist/jsx/v1/types.native.js.map +0 -1
- package/src/inputTypes.test-d.ts +0 -245
- package/src/v1/Input.native.tsx +0 -153
- package/src/v1/Input.tsx +0 -190
- package/src/v1/TextArea.tsx +0 -35
- package/src/v1/index.ts +0 -3
- package/src/v1/types.ts +0 -65
- package/types/v1/Input.d.ts +0 -64
- package/types/v1/Input.d.ts.map +0 -1
- package/types/v1/Input.native.d.ts +0 -63
- package/types/v1/Input.native.d.ts.map +0 -1
- package/types/v1/TextArea.d.ts +0 -41
- package/types/v1/TextArea.d.ts.map +0 -1
- package/types/v1/index.d.ts +0 -4
- package/types/v1/index.d.ts.map +0 -1
- package/types/v1/types.d.ts +0 -39
- package/types/v1/types.d.ts.map +0 -1
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var import_vitest = require("vitest");
|
|
4
|
-
(0, import_vitest.describe)("Input event handler types", function () {
|
|
5
|
-
(0, import_vitest.test)("onChange event uses HTMLInputElement", function () {
|
|
6
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
7
|
-
});
|
|
8
|
-
(0, import_vitest.test)("onFocus event uses HTMLInputElement", function () {
|
|
9
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
10
|
-
});
|
|
11
|
-
(0, import_vitest.test)("onBlur event uses HTMLInputElement", function () {
|
|
12
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
13
|
-
});
|
|
14
|
-
(0, import_vitest.test)("onKeyDown event uses HTMLInputElement", function () {
|
|
15
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
16
|
-
});
|
|
17
|
-
(0, import_vitest.test)("onClick event uses HTMLInputElement", function () {
|
|
18
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
19
|
-
});
|
|
20
|
-
(0, import_vitest.test)("onChange event is NOT typed with HTMLDivElement", function () {
|
|
21
|
-
(0, import_vitest.expectTypeOf)().toEqualTypeOf();
|
|
22
|
-
});
|
|
23
|
-
});
|
|
24
|
-
(0, import_vitest.describe)("Input HTML props", function () {
|
|
25
|
-
(0, import_vitest.test)("accepts type prop", function () {
|
|
26
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("type");
|
|
27
|
-
});
|
|
28
|
-
(0, import_vitest.test)("accepts placeholder prop", function () {
|
|
29
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("placeholder");
|
|
30
|
-
});
|
|
31
|
-
(0, import_vitest.test)("accepts value prop", function () {
|
|
32
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("value");
|
|
33
|
-
});
|
|
34
|
-
(0, import_vitest.test)("accepts defaultValue prop", function () {
|
|
35
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("defaultValue");
|
|
36
|
-
});
|
|
37
|
-
(0, import_vitest.test)("accepts maxLength prop", function () {
|
|
38
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("maxLength");
|
|
39
|
-
});
|
|
40
|
-
(0, import_vitest.test)("accepts pattern prop", function () {
|
|
41
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("pattern");
|
|
42
|
-
});
|
|
43
|
-
(0, import_vitest.test)("accepts required prop", function () {
|
|
44
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("required");
|
|
45
|
-
});
|
|
46
|
-
(0, import_vitest.test)("accepts readOnly prop", function () {
|
|
47
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("readOnly");
|
|
48
|
-
});
|
|
49
|
-
(0, import_vitest.test)("accepts autoComplete prop", function () {
|
|
50
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("autoComplete");
|
|
51
|
-
});
|
|
52
|
-
(0, import_vitest.test)("accepts name prop", function () {
|
|
53
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("name");
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
(0, import_vitest.describe)("Input style props", function () {
|
|
57
|
-
(0, import_vitest.test)("accepts padding style prop", function () {
|
|
58
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("padding");
|
|
59
|
-
});
|
|
60
|
-
(0, import_vitest.test)("accepts backgroundColor style prop", function () {
|
|
61
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("backgroundColor");
|
|
62
|
-
});
|
|
63
|
-
(0, import_vitest.test)("accepts borderRadius style prop", function () {
|
|
64
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("borderRadius");
|
|
65
|
-
});
|
|
66
|
-
(0, import_vitest.test)("accepts text style props", function () {
|
|
67
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("fontSize");
|
|
68
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("fontWeight");
|
|
69
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("color");
|
|
70
|
-
});
|
|
71
|
-
(0, import_vitest.test)("accepts textAlign longhand", function () {
|
|
72
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
73
|
-
});
|
|
74
|
-
(0, import_vitest.test)("accepts size variant", function () {
|
|
75
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("size");
|
|
76
|
-
});
|
|
77
|
-
(0, import_vitest.test)("accepts unstyled variant", function () {
|
|
78
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("unstyled");
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
(0, import_vitest.describe)("Input cross-platform props", function () {
|
|
82
|
-
(0, import_vitest.test)("autoCorrect accepts boolean and string", function () {
|
|
83
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
84
|
-
});
|
|
85
|
-
(0, import_vitest.test)("autoCapitalize accepts native and web values", function () {
|
|
86
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
87
|
-
});
|
|
88
|
-
(0, import_vitest.test)("accepts onChangeText callback", function () {
|
|
89
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("onChangeText");
|
|
90
|
-
(0, import_vitest.expectTypeOf)().toMatchTypeOf();
|
|
91
|
-
});
|
|
92
|
-
(0, import_vitest.test)("accepts onSubmitEditing callback", function () {
|
|
93
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("onSubmitEditing");
|
|
94
|
-
});
|
|
95
|
-
(0, import_vitest.test)("accepts placeholderTextColor", function () {
|
|
96
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("placeholderTextColor");
|
|
97
|
-
});
|
|
98
|
-
(0, import_vitest.test)("accepts selection prop", function () {
|
|
99
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("selection");
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
(0, import_vitest.describe)("InputRef type", function () {
|
|
103
|
-
(0, import_vitest.test)("InputRef accepts TextInput", function () {
|
|
104
|
-
var _ref = {};
|
|
105
|
-
});
|
|
106
|
-
(0, import_vitest.test)("InputRef rejects plain HTMLDivElement", function () {
|
|
107
|
-
var _ref = {};
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
(0, import_vitest.describe)("TextArea types", function () {
|
|
111
|
-
(0, import_vitest.test)("TextArea has rows prop", function () {
|
|
112
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("rows");
|
|
113
|
-
});
|
|
114
|
-
(0, import_vitest.test)("TextArea accepts style props", function () {
|
|
115
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("padding");
|
|
116
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("fontSize");
|
|
117
|
-
});
|
|
118
|
-
(0, import_vitest.test)("TextArea accepts HTML input props", function () {
|
|
119
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("placeholder");
|
|
120
|
-
(0, import_vitest.expectTypeOf)().toHaveProperty("value");
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
(0, import_vitest.describe)("InputProps derivation", function () {
|
|
124
|
-
(0, import_vitest.test)("InputProps equals GetProps<typeof Input>", function () {
|
|
125
|
-
(0, import_vitest.expectTypeOf)().toEqualTypeOf();
|
|
126
|
-
});
|
|
127
|
-
(0, import_vitest.test)("TextAreaProps equals GetProps<typeof TextArea>", function () {
|
|
128
|
-
(0, import_vitest.expectTypeOf)().toEqualTypeOf();
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
//# sourceMappingURL=inputTypes.test-d.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["import_vitest","require","describe","test","expectTypeOf","toMatchTypeOf","toEqualTypeOf","toHaveProperty","_ref"],"sources":["../../src/inputTypes.test-d.ts"],"sourcesContent":[null],"mappings":"AAaA;;AAA6C,IAmB7CA,aAAA,GAAAC,OAAA,CAAS;AACP,IAAAD,aAAA,CAAAE,QAAK,2CAAwC;EAG3C,IAAAF,aAAA,CAAAG,IAAA,wCAAuE;IACxE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AAA,CAAAE,QAAK;EAEH,IAAAF,aAAA,CAAAG,IAAA,4CAAkD;IACnD,IAAAH,aAAA,CAAAI,YAAA,IAAAE,aAAA;EAED;EAEE,IAAAN,aAAA,CAAAG,IAAA,kDAAqD;IACtD,IAAAH,aAAA,CAAAI,YAAA,IAAAE,aAAA;EACF","ignoreList":[]}
|
package/dist/cjs/v1/Input.cjs
DELETED
|
@@ -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,C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AI,CAACjC,EAAA,EAAI;IACT,IAAID,QAAA,EAAU;IACd,WAAOpB,gBAAA,CAAAuD,iBAAA,EAAkBlC,EAAA,EAAI;MACzBmC,cAAA,EAAgB,SAAAA,CAAA,EAAW;QACvB,IAAIC,YAAA;QACJ,CAACA,YAAA,GAAezB,GAAA,CAAI0B,OAAA,MAAa,QAAQD,YAAA,KAAiB,SAAS,SAASA,YAAA,CAAaE,KAAA,CAAM;MACnG;MACAA,KAAA,EAAO,SAAAA,CAAA,EAAW,CAAC;IACvB,CAAC;EACL,GAAG,CACCtC,EAAA,EACAD,QAAA,CACH;EACD,OAAqB,mBAAAzB,kBAAA,CAAAiE,GAAA,EAAKxD,WAAA,EAAa;IACnCmB,QAAA,EAAU,SAAAA,CAASsB,CAAA,EAAG,CAAC;IACvBb,GAAA,EAAKC,WAAA;IACL,GAAGQ;EACP,CAAC;AACL,CAAC","ignoreList":[]}
|
package/dist/cjs/v1/TextArea.cjs
DELETED
|
@@ -1,52 +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 __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":[]}
|
package/dist/cjs/v1/index.cjs
DELETED
|
@@ -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);
|